Answer the question
In order to leave comments, you need to log in
Why does three.js, when creating the second scene, render it a little differently than the first?
Good day.
Actually, codepen . Here I create two small scenes, just wrapping all calls and variables in a closure, and in general everything works, but for some reason the second scene always differs from the first (sometimes very much), although the light sources in both cases are the same. I sin on the renderer, but I just can’t understand the nature of this effect, because in each case, all variables must refer to different instances, because closure.
What could be wrong? Three.js r70.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question