瀏覽代碼

Updated builds.

Mr.doob 6 年之前
父節點
當前提交
22ff2fe202
共有 3 個文件被更改,包括 371 次插入334 次删除
  1. 23 5
      build/three.js
  2. 325 324
      build/three.min.js
  3. 23 5
      build/three.module.js

+ 23 - 5
build/three.js

@@ -14159,15 +14159,15 @@
 
 		},
 
-		containsPoint: function ( point ) {
+		getUV: function ( point, uv1, uv2, uv3, target ) {
 
-			return Triangle.containsPoint( point, this.a, this.b, this.c );
+			return Triangle.getUV( point, this.a, this.b, this.c, uv1, uv2, uv3, target );
 
 		},
 
-		getUV: function ( point, uv1, uv2, uv3, result ) {
+		containsPoint: function ( point ) {
 
-			return Triangle.getUV( point, this.a, this.b, this.c, uv1, uv2, uv3, result );
+			return Triangle.containsPoint( point, this.a, this.b, this.c );
 
 		},
 
@@ -18944,6 +18944,8 @@
 			if ( lights.length === 0 ) return;
 
 			var currentRenderTarget = _renderer.getRenderTarget();
+			var activeCubeFace = _renderer.getActiveCubeFace();
+			var activeMipMapLevel = _renderer.getActiveMipMapLevel();
 
 			var _state = _renderer.state;
 
@@ -19101,7 +19103,7 @@
 
 			scope.needsUpdate = false;
 
-			_renderer.setRenderTarget( currentRenderTarget );
+			_renderer.setRenderTarget( currentRenderTarget, activeCubeFace, activeMipMapLevel );
 
 		};
 
@@ -22786,6 +22788,8 @@
 
 			_framebuffer = null,
 
+			_currentActiveCubeFace = 0,
+			_currentActiveMipmapLevel = 0,
 			_currentRenderTarget = null,
 			_currentFramebuffer = null,
 			_currentMaterialId = - 1,
@@ -25071,6 +25075,18 @@
 
 		};
 
+		this.getActiveCubeFace = function () {
+
+			return _currentActiveCubeFace;
+
+		};
+
+		this.getActiveMipMapLevel = function () {
+
+			return _currentActiveMipmapLevel;
+
+		};
+
 		this.getRenderTarget = function () {
 
 			return _currentRenderTarget;
@@ -25080,6 +25096,8 @@
 		this.setRenderTarget = function ( renderTarget, activeCubeFace, activeMipMapLevel ) {
 
 			_currentRenderTarget = renderTarget;
+			_currentActiveCubeFace = activeCubeFace;
+			_currentActiveMipmapLevel = activeMipMapLevel;
 
 			if ( renderTarget && properties.get( renderTarget ).__webglFramebuffer === undefined ) {
 

文件差異過大導致無法顯示
+ 325 - 324
build/three.min.js


+ 23 - 5
build/three.module.js

@@ -14153,15 +14153,15 @@ Object.assign( Triangle.prototype, {
 
 	},
 
-	containsPoint: function ( point ) {
+	getUV: function ( point, uv1, uv2, uv3, target ) {
 
-		return Triangle.containsPoint( point, this.a, this.b, this.c );
+		return Triangle.getUV( point, this.a, this.b, this.c, uv1, uv2, uv3, target );
 
 	},
 
-	getUV: function ( point, uv1, uv2, uv3, result ) {
+	containsPoint: function ( point ) {
 
-		return Triangle.getUV( point, this.a, this.b, this.c, uv1, uv2, uv3, result );
+		return Triangle.containsPoint( point, this.a, this.b, this.c );
 
 	},
 
@@ -18938,6 +18938,8 @@ function WebGLShadowMap( _renderer, _objects, maxTextureSize ) {
 		if ( lights.length === 0 ) return;
 
 		var currentRenderTarget = _renderer.getRenderTarget();
+		var activeCubeFace = _renderer.getActiveCubeFace();
+		var activeMipMapLevel = _renderer.getActiveMipMapLevel();
 
 		var _state = _renderer.state;
 
@@ -19095,7 +19097,7 @@ function WebGLShadowMap( _renderer, _objects, maxTextureSize ) {
 
 		scope.needsUpdate = false;
 
-		_renderer.setRenderTarget( currentRenderTarget );
+		_renderer.setRenderTarget( currentRenderTarget, activeCubeFace, activeMipMapLevel );
 
 	};
 
@@ -22780,6 +22782,8 @@ function WebGLRenderer( parameters ) {
 
 		_framebuffer = null,
 
+		_currentActiveCubeFace = 0,
+		_currentActiveMipmapLevel = 0,
 		_currentRenderTarget = null,
 		_currentFramebuffer = null,
 		_currentMaterialId = - 1,
@@ -25065,6 +25069,18 @@ function WebGLRenderer( parameters ) {
 
 	};
 
+	this.getActiveCubeFace = function () {
+
+		return _currentActiveCubeFace;
+
+	};
+
+	this.getActiveMipMapLevel = function () {
+
+		return _currentActiveMipmapLevel;
+
+	};
+
 	this.getRenderTarget = function () {
 
 		return _currentRenderTarget;
@@ -25074,6 +25090,8 @@ function WebGLRenderer( parameters ) {
 	this.setRenderTarget = function ( renderTarget, activeCubeFace, activeMipMapLevel ) {
 
 		_currentRenderTarget = renderTarget;
+		_currentActiveCubeFace = activeCubeFace;
+		_currentActiveMipmapLevel = activeMipMapLevel;
 
 		if ( renderTarget && properties.get( renderTarget ).__webglFramebuffer === undefined ) {
 

部分文件因文件數量過多而無法顯示