Browse Source

WebGPURenderer: Fix .autoClear (#25527)

sunag 2 năm trước cách đây
mục cha
commit
b4b756539e
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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;
 
 		}