mayognaise/aframe-html-shader

Update texture after all images loaded?

Opened this issue · 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.

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

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();
}