Ver código fonte

WebGPURenderer: Fix ImageBitmap flip in WebGLBackend (#29866)

* WebGPURenderer: Fix ImageBitmap flip in WebGLBackend

* Update TextureNode.js

---------

Co-authored-by: sunag <sunagbrasil@gmail.com>
Renaud Rohlinger 1 ano atrás
pai
commit
20c67d6d9f
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/nodes/accessors/TextureNode.js

+ 1 - 1
src/nodes/accessors/TextureNode.js

@@ -126,7 +126,7 @@ class TextureNode extends UniformNode {
 
 
 		const texture = this.value;
 		const texture = this.value;
 
 
-		if ( builder.isFlipY() && ( texture.isRenderTargetTexture === true || texture.isFramebufferTexture === true || texture.isDepthTexture === true ) ) {
+		if ( builder.isFlipY() && ( ( texture.image instanceof ImageBitmap && texture.flipY === true ) || texture.isRenderTargetTexture === true || texture.isFramebufferTexture === true || texture.isDepthTexture === true ) ) {
 
 
 			if ( this.sampler ) {
 			if ( this.sampler ) {
 
 

粤ICP备19079148号