|
@@ -1,5 +1,5 @@
|
|
|
// threejs.org/license
|
|
|
-const REVISION = '121';
|
|
|
+const REVISION = '122dev';
|
|
|
const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 };
|
|
|
const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
|
|
|
const CullFaceNone = 0;
|
|
@@ -23906,9 +23906,9 @@ function WebGLRenderer( parameters ) {
|
|
|
currentRenderState = renderStates.get( scene, camera );
|
|
|
currentRenderState.init();
|
|
|
|
|
|
- scene.traverse( function ( object ) {
|
|
|
+ scene.traverseVisible( function ( object ) {
|
|
|
|
|
|
- if ( object.isLight ) {
|
|
|
+ if ( object.isLight && object.layers.test( camera.layers ) ) {
|
|
|
|
|
|
currentRenderState.pushLight( object );
|
|
|
|