A
A
Alexey Nikolaev2016-03-08 17:17:17
JavaScript
Alexey Nikolaev, 2016-03-08 17:17:17

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

1 answer(s)
K
keslo, 2016-03-08
@keslo

And everything seems to be the same for me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question