Browse Source

r140 (bis)

Mr.doob 3 years ago
parent
commit
b73e9fbe4a

+ 2 - 1
build/three.cjs

@@ -2674,7 +2674,8 @@ class WebGLRenderTarget extends EventDispatcher {
 		this.texture = source.texture.clone();
 		this.texture.isRenderTargetTexture = true; // ensure image object is not shared, see #20328
 
-		this.texture.image = Object.assign({}, source.texture.image);
+		const image = Object.assign({}, source.texture.image);
+		this.texture.source = new Source(image);
 		this.depthBuffer = source.depthBuffer;
 		this.stencilBuffer = source.stencilBuffer;
 		if (source.depthTexture !== null) this.depthTexture = source.depthTexture.clone();

+ 2 - 1
build/three.js

@@ -2676,7 +2676,8 @@
 			this.texture = source.texture.clone();
 			this.texture.isRenderTargetTexture = true; // ensure image object is not shared, see #20328
 
-			this.texture.image = Object.assign({}, source.texture.image);
+			const image = Object.assign({}, source.texture.image);
+			this.texture.source = new Source(image);
 			this.depthBuffer = source.depthBuffer;
 			this.stencilBuffer = source.stencilBuffer;
 			if (source.depthTexture !== null) this.depthTexture = source.depthTexture.clone();

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


+ 2 - 1
build/three.module.js

@@ -3416,7 +3416,8 @@ class WebGLRenderTarget extends EventDispatcher {
 
 		// ensure image object is not shared, see #20328
 
-		this.texture.image = Object.assign( {}, source.texture.image );
+		const image = Object.assign( {}, source.texture.image );
+		this.texture.source = new Source( image );
 
 		this.depthBuffer = source.depthBuffer;
 		this.stencilBuffer = source.stencilBuffer;

+ 1 - 1
editor/sw.js

@@ -1,4 +1,4 @@
-// r140
+// r140.1
 
 const cacheName = 'threejs-editor';
 

+ 6 - 0
examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.js

@@ -331,6 +331,12 @@ class WebGLNodeBuilder extends NodeBuilder {
 
 	}
 
+	getFrontFacing() {
+
+		return 'gl_FrontFacing';
+
+	}
+
 	buildCode() {
 
 		const shaderData = {};

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