2
0
Эх сурвалжийг харах

WebGPURenderer: Fix flipY `Data*Texture` (#27815)

sunag 1 жил өмнө
parent
commit
2adfd75ee0

+ 2 - 2
examples/jsm/renderers/webgpu/utils/WebGPUTextureUtils.js

@@ -327,13 +327,13 @@ class WebGPUTextureUtils {
 
 		if ( texture.isDataTexture || texture.isData3DTexture ) {
 
-			this._copyBufferToTexture( options.image, textureData.texture, textureDescriptorGPU, 0, false );
+			this._copyBufferToTexture( options.image, textureData.texture, textureDescriptorGPU, 0, texture.flipY );
 
 		} else if ( texture.isDataArrayTexture ) {
 
 			for ( let i = 0; i < options.image.depth; i ++ ) {
 
-				this._copyBufferToTexture( options.image, textureData.texture, textureDescriptorGPU, i, false, i );
+				this._copyBufferToTexture( options.image, textureData.texture, textureDescriptorGPU, i, texture.flipY, i );
 
 			}