2
0
Mr.doob 8 жил өмнө
parent
commit
e557ad2fe4
3 өөрчлөгдсөн 304 нэмэгдсэн , 312 устгасан
  1. 37 41
      build/three.js
  2. 230 230
      build/three.min.js
  3. 37 41
      build/three.module.js

+ 37 - 41
build/three.js

@@ -21122,79 +21122,73 @@
 
 
 			if ( ! object.visible ) return;
 			if ( ! object.visible ) return;
 
 
-			var visible = object.layers.test( camera.layers );
-
-			if ( visible ) {
+			if ( object.isLight ) {
 
 
-				if ( object.isLight ) {
+				lights.push( object );
 
 
-					lights.push( object );
+			} else if ( object.isSprite ) {
 
 
-				} else if ( object.isSprite ) {
+				if ( ! object.frustumCulled || _frustum.intersectsSprite( object ) ) {
 
 
-					if ( ! object.frustumCulled || _frustum.intersectsSprite( object ) ) {
+					sprites.push( object );
 
 
-						sprites.push( object );
-
-					}
-
-				} else if ( object.isLensFlare ) {
+				}
 
 
-					lensFlares.push( object );
+			} else if ( object.isLensFlare ) {
 
 
-				} else if ( object.isImmediateRenderObject ) {
+				lensFlares.push( object );
 
 
-					if ( sortObjects ) {
+			} else if ( object.isImmediateRenderObject ) {
 
 
-						_vector3.setFromMatrixPosition( object.matrixWorld )
-							.applyMatrix4( _projScreenMatrix );
+				if ( sortObjects ) {
 
 
-					}
+					_vector3.setFromMatrixPosition( object.matrixWorld )
+						.applyMatrix4( _projScreenMatrix );
 
 
-					currentRenderList.push( object, null, object.material, _vector3.z, null );
+				}
 
 
-				} else if ( object.isMesh || object.isLine || object.isPoints ) {
+				currentRenderList.push( object, null, object.material, _vector3.z, null );
 
 
-					if ( object.isSkinnedMesh ) {
+			} else if ( object.isMesh || object.isLine || object.isPoints ) {
 
 
-						object.skeleton.update();
+				if ( object.isSkinnedMesh ) {
 
 
-					}
+					object.skeleton.update();
 
 
-					if ( ! object.frustumCulled || _frustum.intersectsObject( object ) ) {
+				}
 
 
-						if ( sortObjects ) {
+				if ( ! object.frustumCulled || _frustum.intersectsObject( object ) ) {
 
 
-							_vector3.setFromMatrixPosition( object.matrixWorld )
-								.applyMatrix4( _projScreenMatrix );
+					if ( sortObjects ) {
 
 
-						}
+						_vector3.setFromMatrixPosition( object.matrixWorld )
+							.applyMatrix4( _projScreenMatrix );
 
 
-						var geometry = objects.update( object );
-						var material = object.material;
+					}
 
 
-						if ( Array.isArray( material ) ) {
+					var geometry = objects.update( object );
+					var material = object.material;
 
 
-							var groups = geometry.groups;
+					if ( Array.isArray( material ) ) {
 
 
-							for ( var i = 0, l = groups.length; i < l; i ++ ) {
+						var groups = geometry.groups;
 
 
-								var group = groups[ i ];
-								var groupMaterial = material[ group.materialIndex ];
+						for ( var i = 0, l = groups.length; i < l; i ++ ) {
 
 
-								if ( groupMaterial && groupMaterial.visible ) {
+							var group = groups[ i ];
+							var groupMaterial = material[ group.materialIndex ];
 
 
-									currentRenderList.push( object, geometry, groupMaterial, _vector3.z, group );
+							if ( groupMaterial && groupMaterial.visible ) {
 
 
-								}
+								currentRenderList.push( object, geometry, groupMaterial, _vector3.z, group );
 
 
 							}
 							}
 
 
-						} else if ( material.visible ) {
+						}
 
 
-							currentRenderList.push( object, geometry, material, _vector3.z, null );
+					} else if ( material.visible ) {
 
 
-						}
+						currentRenderList.push( object, geometry, material, _vector3.z, null );
 
 
 					}
 					}
 
 
@@ -21262,6 +21256,8 @@
 
 
 		function renderObject( object, scene, camera, geometry, material, group ) {
 		function renderObject( object, scene, camera, geometry, material, group ) {
 
 
+			if ( object.layers.test( camera.layers ) === false ) return;
+
 			object.modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, object.matrixWorld );
 			object.modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, object.matrixWorld );
 			object.normalMatrix.getNormalMatrix( object.modelViewMatrix );
 			object.normalMatrix.getNormalMatrix( object.modelViewMatrix );
 
 

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 230 - 230
build/three.min.js


+ 37 - 41
build/three.module.js

@@ -21116,79 +21116,73 @@ function WebGLRenderer( parameters ) {
 
 
 		if ( ! object.visible ) return;
 		if ( ! object.visible ) return;
 
 
-		var visible = object.layers.test( camera.layers );
-
-		if ( visible ) {
+		if ( object.isLight ) {
 
 
-			if ( object.isLight ) {
+			lights.push( object );
 
 
-				lights.push( object );
+		} else if ( object.isSprite ) {
 
 
-			} else if ( object.isSprite ) {
+			if ( ! object.frustumCulled || _frustum.intersectsSprite( object ) ) {
 
 
-				if ( ! object.frustumCulled || _frustum.intersectsSprite( object ) ) {
+				sprites.push( object );
 
 
-					sprites.push( object );
-
-				}
-
-			} else if ( object.isLensFlare ) {
+			}
 
 
-				lensFlares.push( object );
+		} else if ( object.isLensFlare ) {
 
 
-			} else if ( object.isImmediateRenderObject ) {
+			lensFlares.push( object );
 
 
-				if ( sortObjects ) {
+		} else if ( object.isImmediateRenderObject ) {
 
 
-					_vector3.setFromMatrixPosition( object.matrixWorld )
-						.applyMatrix4( _projScreenMatrix );
+			if ( sortObjects ) {
 
 
-				}
+				_vector3.setFromMatrixPosition( object.matrixWorld )
+					.applyMatrix4( _projScreenMatrix );
 
 
-				currentRenderList.push( object, null, object.material, _vector3.z, null );
+			}
 
 
-			} else if ( object.isMesh || object.isLine || object.isPoints ) {
+			currentRenderList.push( object, null, object.material, _vector3.z, null );
 
 
-				if ( object.isSkinnedMesh ) {
+		} else if ( object.isMesh || object.isLine || object.isPoints ) {
 
 
-					object.skeleton.update();
+			if ( object.isSkinnedMesh ) {
 
 
-				}
+				object.skeleton.update();
 
 
-				if ( ! object.frustumCulled || _frustum.intersectsObject( object ) ) {
+			}
 
 
-					if ( sortObjects ) {
+			if ( ! object.frustumCulled || _frustum.intersectsObject( object ) ) {
 
 
-						_vector3.setFromMatrixPosition( object.matrixWorld )
-							.applyMatrix4( _projScreenMatrix );
+				if ( sortObjects ) {
 
 
-					}
+					_vector3.setFromMatrixPosition( object.matrixWorld )
+						.applyMatrix4( _projScreenMatrix );
 
 
-					var geometry = objects.update( object );
-					var material = object.material;
+				}
 
 
-					if ( Array.isArray( material ) ) {
+				var geometry = objects.update( object );
+				var material = object.material;
 
 
-						var groups = geometry.groups;
+				if ( Array.isArray( material ) ) {
 
 
-						for ( var i = 0, l = groups.length; i < l; i ++ ) {
+					var groups = geometry.groups;
 
 
-							var group = groups[ i ];
-							var groupMaterial = material[ group.materialIndex ];
+					for ( var i = 0, l = groups.length; i < l; i ++ ) {
 
 
-							if ( groupMaterial && groupMaterial.visible ) {
+						var group = groups[ i ];
+						var groupMaterial = material[ group.materialIndex ];
 
 
-								currentRenderList.push( object, geometry, groupMaterial, _vector3.z, group );
+						if ( groupMaterial && groupMaterial.visible ) {
 
 
-							}
+							currentRenderList.push( object, geometry, groupMaterial, _vector3.z, group );
 
 
 						}
 						}
 
 
-					} else if ( material.visible ) {
+					}
 
 
-						currentRenderList.push( object, geometry, material, _vector3.z, null );
+				} else if ( material.visible ) {
 
 
-					}
+					currentRenderList.push( object, geometry, material, _vector3.z, null );
 
 
 				}
 				}
 
 
@@ -21256,6 +21250,8 @@ function WebGLRenderer( parameters ) {
 
 
 	function renderObject( object, scene, camera, geometry, material, group ) {
 	function renderObject( object, scene, camera, geometry, material, group ) {
 
 
+		if ( object.layers.test( camera.layers ) === false ) return;
+
 		object.modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, object.matrixWorld );
 		object.modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, object.matrixWorld );
 		object.normalMatrix.getNormalMatrix( object.modelViewMatrix );
 		object.normalMatrix.getNormalMatrix( object.modelViewMatrix );
 
 

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно