Browse Source

WebGPU: set compositingAlphaMode (#23776)

sunag 3 years ago
parent
commit
55f98507d5
1 changed files with 2 additions and 1 deletions
  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;