Description of the problem
onBeforeCompile seems to be ignored when cloning materials:
https://codepen.io/anon/pen/yjPLrJ?editors=1010
Expected result is equal amount of yellow and red cubes.
Proposing to either:
- consider
Material.onBeforeCompile when cloning
- document that there should be no cloning happening after setting this callback
- document that
.clone() is non deterministic, it's going to be a different clone depending on the presence of onBeforeCompile
Three.js version
Browser
OS
Hardware Requirements (graphics card, VR Device, ...)