2
0
Эх сурвалжийг харах

WebGPU: set compositingAlphaMode (#23776)

sunag 3 жил өмнө
parent
commit
55f98507d5

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

@@ -171,7 +171,8 @@ class WebGPURenderer {
 
 
 		context.configure( {
 		context.configure( {
 			device: device,
 			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;
 		this._adapter = adapter;