Просмотр исходного кода

WebGPU: set compositingAlphaMode (#23776)

sunag 4 лет назад
Родитель
Сommit
55f98507d5
1 измененных файлов с 2 добавлено и 1 удалено
  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;

粤ICP备19079148号