|
|
@@ -389,7 +389,7 @@ class WebGPUPipelineUtils {
|
|
|
break;
|
|
|
|
|
|
case MultiplyBlending:
|
|
|
- setBlend( GPUBlendFactor.Zero, GPUBlendFactor.Src, GPUBlendFactor.Zero, GPUBlendFactor.SrcAlpha );
|
|
|
+ setBlend( GPUBlendFactor.Dst, GPUBlendFactor.OneMinusSrcAlpha, GPUBlendFactor.Zero, GPUBlendFactor.One );
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
@@ -403,15 +403,15 @@ class WebGPUPipelineUtils {
|
|
|
break;
|
|
|
|
|
|
case AdditiveBlending:
|
|
|
- setBlend( GPUBlendFactor.SrcAlpha, GPUBlendFactor.One, GPUBlendFactor.SrcAlpha, GPUBlendFactor.One );
|
|
|
+ setBlend( GPUBlendFactor.SrcAlpha, GPUBlendFactor.One, GPUBlendFactor.One, GPUBlendFactor.One );
|
|
|
break;
|
|
|
|
|
|
case SubtractiveBlending:
|
|
|
- setBlend( GPUBlendFactor.Zero, GPUBlendFactor.OneMinusSrc, GPUBlendFactor.Zero, GPUBlendFactor.One );
|
|
|
+ console.error( 'THREE.WebGPURenderer: SubtractiveBlending requires material.premultipliedAlpha = true' );
|
|
|
break;
|
|
|
|
|
|
case MultiplyBlending:
|
|
|
- setBlend( GPUBlendFactor.Zero, GPUBlendFactor.Src, GPUBlendFactor.Zero, GPUBlendFactor.Src );
|
|
|
+ console.error( 'THREE.WebGPURenderer: MultiplyBlending requires material.premultipliedAlpha = true' );
|
|
|
break;
|
|
|
|
|
|
}
|