Browse Source

Updated builds.

Mr.doob 8 years ago
parent
commit
f7d5d8a3da
3 changed files with 357 additions and 345 deletions
  1. 35 29
      build/three.js
  2. 287 287
      build/three.min.js
  3. 35 29
      build/three.module.js

+ 35 - 29
build/three.js

@@ -19840,18 +19840,18 @@
 
 				hash: '',
 
-			ambient: [ 0, 0, 0 ],
-			directional: [],
-			directionalShadowMap: [],
-			directionalShadowMatrix: [],
-			spot: [],
-			spotShadowMap: [],
-			spotShadowMatrix: [],
-			rectArea: [],
-			point: [],
-			pointShadowMap: [],
-			pointShadowMatrix: [],
-			hemi: [],
+				ambient: [ 0, 0, 0 ],
+				directional: [],
+				directionalShadowMap: [],
+				directionalShadowMatrix: [],
+				spot: [],
+				spotShadowMap: [],
+				spotShadowMatrix: [],
+				rectArea: [],
+				point: [],
+				pointShadowMap: [],
+				pointShadowMatrix: [],
+				hemi: [],
 
 				shadows: []
 
@@ -20186,12 +20186,12 @@
 
 		this.resetGLState = resetGLState;
 
-		this.dispose = function() {
+		this.dispose = function () {
 
 			transparentObjects = [];
-			transparentObjectsLastIndex = -1;
+			transparentObjectsLastIndex = - 1;
 			opaqueObjects = [];
-			opaqueObjectsLastIndex = -1;
+			opaqueObjectsLastIndex = - 1;
 
 			_canvas.removeEventListener( 'webglcontextlost', onContextLost, false );
 
@@ -20247,6 +20247,16 @@
 
 		// Buffer rendering
 
+		function renderObjectImmediate( object, program, material ) {
+
+			object.render( function ( object ) {
+
+				_this.renderBufferImmediate( object, program, material );
+
+			} );
+
+		}
+
 		this.renderBufferImmediate = function ( object, program, material ) {
 
 			state.initAttributes();
@@ -21157,11 +21167,7 @@
 
 					_currentGeometryProgram = '';
 
-					object.render( function ( object ) {
-
-						_this.renderBufferImmediate( object, program, material );
-
-					} );
+					renderObjectImmediate( object, program, material );
 
 				} else {
 
@@ -21978,11 +21984,11 @@
 
 				viewMatrix = camera.matrixWorldInverse,
 
-			directionalLength = 0,
-			pointLength = 0,
-			spotLength = 0,
-			rectAreaLength = 0,
-			hemiLength = 0;
+				directionalLength = 0,
+				pointLength = 0,
+				spotLength = 0,
+				rectAreaLength = 0,
+				hemiLength = 0;
 
 			for ( l = 0, ll = lights.length; l < ll; l ++ ) {
 
@@ -22187,7 +22193,7 @@
 		this.allocTextureUnit = allocTextureUnit;
 
 		// this.setTexture2D = setTexture2D;
-		this.setTexture2D = ( function() {
+		this.setTexture2D = ( function () {
 
 			var warned = false;
 
@@ -22213,7 +22219,7 @@
 
 		}() );
 
-		this.setTexture = ( function() {
+		this.setTexture = ( function () {
 
 			var warned = false;
 
@@ -22232,7 +22238,7 @@
 
 		}() );
 
-		this.setTextureCube = ( function() {
+		this.setTextureCube = ( function () {
 
 			var warned = false;
 
@@ -22274,7 +22280,7 @@
 
 		}() );
 
-		this.getCurrentRenderTarget = function() {
+		this.getCurrentRenderTarget = function () {
 
 			return _currentRenderTarget;
 

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


+ 35 - 29
build/three.module.js

@@ -19834,18 +19834,18 @@ function WebGLRenderer( parameters ) {
 
 			hash: '',
 
-		ambient: [ 0, 0, 0 ],
-		directional: [],
-		directionalShadowMap: [],
-		directionalShadowMatrix: [],
-		spot: [],
-		spotShadowMap: [],
-		spotShadowMatrix: [],
-		rectArea: [],
-		point: [],
-		pointShadowMap: [],
-		pointShadowMatrix: [],
-		hemi: [],
+			ambient: [ 0, 0, 0 ],
+			directional: [],
+			directionalShadowMap: [],
+			directionalShadowMatrix: [],
+			spot: [],
+			spotShadowMap: [],
+			spotShadowMatrix: [],
+			rectArea: [],
+			point: [],
+			pointShadowMap: [],
+			pointShadowMatrix: [],
+			hemi: [],
 
 			shadows: []
 
@@ -20180,12 +20180,12 @@ function WebGLRenderer( parameters ) {
 
 	this.resetGLState = resetGLState;
 
-	this.dispose = function() {
+	this.dispose = function () {
 
 		transparentObjects = [];
-		transparentObjectsLastIndex = -1;
+		transparentObjectsLastIndex = - 1;
 		opaqueObjects = [];
-		opaqueObjectsLastIndex = -1;
+		opaqueObjectsLastIndex = - 1;
 
 		_canvas.removeEventListener( 'webglcontextlost', onContextLost, false );
 
@@ -20241,6 +20241,16 @@ function WebGLRenderer( parameters ) {
 
 	// Buffer rendering
 
+	function renderObjectImmediate( object, program, material ) {
+
+		object.render( function ( object ) {
+
+			_this.renderBufferImmediate( object, program, material );
+
+		} );
+
+	}
+
 	this.renderBufferImmediate = function ( object, program, material ) {
 
 		state.initAttributes();
@@ -21151,11 +21161,7 @@ function WebGLRenderer( parameters ) {
 
 				_currentGeometryProgram = '';
 
-				object.render( function ( object ) {
-
-					_this.renderBufferImmediate( object, program, material );
-
-				} );
+				renderObjectImmediate( object, program, material );
 
 			} else {
 
@@ -21972,11 +21978,11 @@ function WebGLRenderer( parameters ) {
 
 			viewMatrix = camera.matrixWorldInverse,
 
-		directionalLength = 0,
-		pointLength = 0,
-		spotLength = 0,
-		rectAreaLength = 0,
-		hemiLength = 0;
+			directionalLength = 0,
+			pointLength = 0,
+			spotLength = 0,
+			rectAreaLength = 0,
+			hemiLength = 0;
 
 		for ( l = 0, ll = lights.length; l < ll; l ++ ) {
 
@@ -22181,7 +22187,7 @@ function WebGLRenderer( parameters ) {
 	this.allocTextureUnit = allocTextureUnit;
 
 	// this.setTexture2D = setTexture2D;
-	this.setTexture2D = ( function() {
+	this.setTexture2D = ( function () {
 
 		var warned = false;
 
@@ -22207,7 +22213,7 @@ function WebGLRenderer( parameters ) {
 
 	}() );
 
-	this.setTexture = ( function() {
+	this.setTexture = ( function () {
 
 		var warned = false;
 
@@ -22226,7 +22232,7 @@ function WebGLRenderer( parameters ) {
 
 	}() );
 
-	this.setTextureCube = ( function() {
+	this.setTextureCube = ( function () {
 
 		var warned = false;
 
@@ -22268,7 +22274,7 @@ function WebGLRenderer( parameters ) {
 
 	}() );
 
-	this.getCurrentRenderTarget = function() {
+	this.getCurrentRenderTarget = function () {
 
 		return _currentRenderTarget;
 

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