Kaynağa Gözat

WebGPUBackend: Fix `generateMipmaps` when used `copyFramebufferToTexture()` (#31163)

sunag 1 yıl önce
ebeveyn
işleme
cacaad1e20
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  1. 6 0
      src/renderers/webgpu/WebGPUBackend.js

+ 6 - 0
src/renderers/webgpu/WebGPUBackend.js

@@ -2394,6 +2394,12 @@ class WebGPUBackend extends Backend {
 
 		}
 
+		if ( texture.generateMipmaps ) {
+
+			this.textureUtils.generateMipmaps( texture );
+
+		}
+
 	}
 
 }

粤ICP备19079148号