Преглед изворни кода

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 година
родитељ
комит
20c67d6d9f
1 измењених фајлова са 1 додато и 1 уклоњено
  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;
 
-		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 ) {
 

粤ICP备19079148号