Ver Fonte

WebGPU: set compositingAlphaMode (#23776)

sunag há 3 anos atrás
pai
commit
55f98507d5
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      examples/jsm/renderers/webgpu/WebGPURenderer.js

+ 2 - 1
examples/jsm/renderers/webgpu/WebGPURenderer.js

@@ -171,7 +171,8 @@ class WebGPURenderer {
 
 		context.configure( {
 			device: device,
-			format: GPUTextureFormat.BGRA8Unorm // this is the only valid context format right now (r121)
+			format: GPUTextureFormat.BGRA8Unorm, // this is the only valid context format right now (r121)
+			compositingAlphaMode: 'opaque'
 		} );
 
 		this._adapter = adapter;