Sfoglia il codice sorgente

WebGPU: set compositingAlphaMode (#23776)

sunag 4 anni fa
parent
commit
55f98507d5
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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( {
 		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;

粤ICP备19079148号