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

WebGPUTextures: Honor premultiplyAlpha when creating ImageBitmap.

Mugen87 5 жил өмнө
parent
commit
a21d08273f

+ 1 - 0
examples/jsm/renderers/webgpu/WebGPUTextures.js

@@ -241,6 +241,7 @@ class WebGPUTextures {
 				const options = {};
 
 				options.imageOrientation = ( texture.flipY === true ) ? 'flipY' : 'none';
+				options.premultiplyAlpha = ( texture.premultiplyAlpha === true ) ? 'premultiply' : 'default';
 
 				createImageBitmap( image, 0, 0, width, height, options ).then( imageBitmap => {