Browse Source

Updated builds.

Mr.doob 4 years ago
parent
commit
d7f2eff921
3 changed files with 6 additions and 6 deletions
  1. 3 3
      build/three.js
  2. 0 0
      build/three.min.js
  3. 3 3
      build/three.module.js

+ 3 - 3
build/three.js

@@ -63,7 +63,7 @@
 		};
 	}
 
-	var REVISION = '121';
+	var REVISION = '122dev';
 	var MOUSE = {
 		LEFT: 0,
 		MIDDLE: 1,
@@ -17723,8 +17723,8 @@
 		this.compile = function (scene, camera) {
 			currentRenderState = renderStates.get(scene, camera);
 			currentRenderState.init();
-			scene.traverse(function (object) {
-				if (object.isLight) {
+			scene.traverseVisible(function (object) {
+				if (object.isLight && object.layers.test(camera.layers)) {
 					currentRenderState.pushLight(object);
 
 					if (object.castShadow) {

File diff suppressed because it is too large
+ 0 - 0
build/three.min.js


+ 3 - 3
build/three.module.js

@@ -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 );
 

Some files were not shown because too many files changed in this diff