aframe-html-shader icon indicating copy to clipboard operation
aframe-html-shader copied to clipboard

Update texture after all images loaded?

Open eng1neer opened this issue 7 years ago • 2 comments

I'm using a texture with some images embedded. The texture is static but on the first render it doesn't have all images correctly rendered - some are still loading. Would be great to get automatic updates when all images loaded.

eng1neer avatar Nov 15 '17 09:11 eng1neer

It would be great to be able to run render() again.

weddingdj avatar Jun 14 '18 15:06 weddingdj

The following code worked for me to update the material once:

var titles = document.querySelectorAll('.title');
for (var k = 0; k < titles.length; k++) {
titles[k].components.material.shader.__render();
}

weddingdj avatar Jun 14 '18 16:06 weddingdj