Explorar o código

Updated builds.

Mr.doob %!s(int64=4) %!d(string=hai) anos
pai
achega
d7f2eff921
Modificáronse 3 ficheiros con 6 adicións e 6 borrados
  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) {

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 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 );
 

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio