Jump to content

How can we be sure that we can safely freeze a material?


BMWPilote
 Share

Recommended Posts

I need to freeze my materials for my static scene. However I am not sure when to freeze them safely? I tried to call freezeMateiral right after assigning the textures. But the result was that the textures could never been displayed. I tried to free them using BABYLON.Texture.WhenAllReady callback. But it did not worker either. I needed to add a large timeout to make sure that all the materials were ready. 

So my question is whether we have a way by which we can 100% be sure that the material is really ready (including opengl texture) so that I can call freeze safely?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...