You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is a bug in the code or documentation as I found a workaround, but figured I'd open an issue:
I'm getting an error when using three-extend-material more than once on the same page. In this case, they're also associated with separate contexts, but after looking through the code I'm not sure that'd make a difference.
Then, I get some weird issues. Steps to replicate:
I'm adding both materials to their own scenes + contexts and adding them to the document, but not yet animating them - just initialising them to the first frame of the animation.
I start the animation for the scene containing the first material and get the following error:
I stop the animation for the first scene
Then, I start the animation for the second scene. It works fine and there's no problems
I stop the animation for the second scene
I start the animation for the first scene. I get the same error
I stop the animation for the first scene
I start the animation for the second scene
This is where stuff gets really broken - suddenly, the diffuse value for the second material has become equal to the colour for one of the lights in the first scene. Setting the colour was done on initialisation and hasn't been changed since then, and definitely not since it worked the first time.
Setting explicit: false on the material fixes the issue, so I assume the problem must lie in useUniforms somewhere - but I can't figure out where specifically so am unable to contribute an actual fix :(
The text was updated successfully, but these errors were encountered:
I don't know if this is a bug in the code or documentation as I found a workaround, but figured I'd open an issue:
I'm getting an error when using three-extend-material more than once on the same page. In this case, they're also associated with separate contexts, but after looking through the code I'm not sure that'd make a difference.
My first material:
My second material:
Then, I get some weird issues. Steps to replicate:
This is where stuff gets really broken - suddenly, the
diffuse
value for the second material has become equal to the colour for one of the lights in the first scene. Setting the colour was done on initialisation and hasn't been changed since then, and definitely not since it worked the first time.Setting
explicit: false
on the material fixes the issue, so I assume the problem must lie inuseUniforms
somewhere - but I can't figure out where specifically so am unable to contribute an actual fix :(The text was updated successfully, but these errors were encountered: