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

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

sunag пре 1 година
родитељ
комит
cacaad1e20
1 измењених фајлова са 6 додато и 0 уклоњено
  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号