sunag 2 лет назад
Родитель
Сommit
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;
 
 		}