levere

Dynamically updating MultiMaterial's subMaterials

Recommended Posts

Based on the MultiMaterial example here, I have created a simple playground demo that, after fully loaded and running, attempts to either change the diffuseTexture of a MultiMaterial's sub-material or replace a sub-material with a new one. Neither appear to successfully load and render the newly created texture, though changing diffuseColor does have an effect. Am I missing a step or is this a bug?

http://babylonjs-playground.com/#3HGJ5Y#2

Share this post


Link to post
Share on other sites

Great, thanks. That does take care of the diffuseTexture assignment on an existing sub-material, but what about the case where I'm re-assigning a sub-material to a new one, prior to the diffuseTexture assignment (run again and hit the 'm' key)? The color change is still caught and reflected properly, but not the texture assignment.

Share this post


Link to post
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...

  • Recently Browsing   0 members

    No registered users viewing this page.