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
letsomeString='a';constmaterialA=newTHREE.MeshBasicMaterial();materialA.onBeforeCompile=function(){// do something with someString}someString='b';constmaterialB=newTHREE.MeshBasicMaterial();materialB.onBeforeCompile=function(){// do something with someString}
The hash of those materials will be the same when using onBeforeCompile.toString() but they do different things because of different variable values.
So the compiled version of materialA is equal to the compiled version of materialB when they are not equal.
Description of the problem
Two different materials is being recognised as the same material here:
three.js/src/renderers/webgl/WebGLPrograms.js
Line 218 in c94018c
The hash of those materials will be the same when using
onBeforeCompile.toString()
but they do different things because of different variable values.So the compiled version of
materialA
is equal to the compiled version ofmaterialB
when they are not equal.Three.js version
Browser
OS
Hardware Requirements (graphics card, VR Device, ...)
The text was updated successfully, but these errors were encountered: