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

WebGPURenderer: Fix Shadows PBR (#30307)

Renaud Rohlinger пре 1 година
родитељ
комит
292c046b17
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/renderers/webgpu/WebGPUBackend.js

+ 1 - 1
src/renderers/webgpu/WebGPUBackend.js

@@ -890,7 +890,7 @@ class WebGPUBackend extends Backend {
 
 			if ( color ) {
 
-				const descriptor = this._getRenderPassDescriptor( renderTargetContext, { loadOp: GPULoadOp.Clear } );
+				const descriptor = this._getRenderPassDescriptor( renderTargetContext, { loadOp: GPULoadOp.Clear, clearValue } );
 
 				colorAttachments = descriptor.colorAttachments;
 

粤ICP备19079148号