Explorar o código

WebGPURenderer: Fix .autoClear (#25527)

sunag %!s(int64=2) %!d(string=hai) anos
pai
achega
b4b756539e
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      examples/jsm/renderers/webgpu/WebGPUBackground.js

+ 5 - 0
examples/jsm/renderers/webgpu/WebGPUBackground.js

@@ -165,8 +165,13 @@ class WebGPUBackground {
 		} else {
 
 			colorAttachment.loadOp = GPULoadOp.Load;
+			colorAttachment.storeOp = GPUStoreOp.Store;
+
 			depthStencilAttachment.depthLoadOp = GPULoadOp.Load;
+			depthStencilAttachment.depthStoreOp = GPUStoreOp.Store;
+
 			depthStencilAttachment.stencilLoadOp = GPULoadOp.Load;
+			depthStencilAttachment.stencilStoreOp = GPUStoreOp.Store;
 
 		}