Quellcode durchsuchen

WebGPURenderer: Fix .autoClear (#25527)

sunag vor 2 Jahren
Ursprung
Commit
b4b756539e
1 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  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;
 
 		}