Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update texture after all images loaded? #16

Open
eng1neer opened this issue Nov 15, 2017 · 2 comments
Open

Update texture after all images loaded? #16

eng1neer opened this issue Nov 15, 2017 · 2 comments

Comments

@eng1neer
Copy link

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.

@weddingdj
Copy link

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

@weddingdj
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants