瀏覽代碼

WebGPURenderer: Fix .flipY example

sunag 1 年之前
父節點
當前提交
379038f6d4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/renderers/webgpu/utils/WebGPUTextureUtils.js

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

@@ -239,7 +239,7 @@ class WebGPUTextureUtils {
 
 
 		if ( texture.isDataTexture || texture.isDataArrayTexture || texture.isData3DTexture ) {
 		if ( texture.isDataTexture || texture.isDataArrayTexture || texture.isData3DTexture ) {
 
 
-			this._copyBufferToTexture( options.image, textureData.texture, textureDescriptorGPU, 0, texture.flipY );
+			this._copyBufferToTexture( options.image, textureData.texture, textureDescriptorGPU, 0, false );
 
 
 		} else if ( texture.isCompressedTexture ) {
 		} else if ( texture.isCompressedTexture ) {