Преглед на файлове

WebGPURenderer: Fix .autoClear (#25527)

sunag преди 2 години
родител
ревизия
b4b756539e
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  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;
 
 		}