* WebGPURenderer: Fix ImageBitmap flip in WebGLBackend * Update TextureNode.js --------- Co-authored-by: sunag <sunagbrasil@gmail.com>
@@ -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 ) {