Skip to content

Commit b3132ce

Browse files
committed
Always use MULTIPLY_RGB_SET_ALPHA
1 parent dc939e1 commit b3132ce

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/effects/DepthOfFieldEffect.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export class DepthOfFieldEffect extends Effect {
180180

181181
this.maskPass = new ShaderPass(new MaskMaterial(this.renderTargetCoC.texture));
182182
const maskMaterial = this.maskPass.fullscreenMaterial;
183-
maskMaterial.maskFunction = MaskFunction.MULTIPLY;
183+
maskMaterial.maskFunction = MaskFunction.MULTIPLY_RGB_SET_ALPHA;
184184
maskMaterial.colorChannel = ColorChannel.GREEN;
185185

186186
/**
@@ -526,10 +526,6 @@ export class DepthOfFieldEffect extends Effect {
526526
// The blur pass operates on the CoC buffer.
527527
this.blurPass.initialize(renderer, alpha, UnsignedByteType);
528528

529-
const maskMaterial = this.maskPass.fullscreenMaterial;
530-
maskMaterial.maskFunction = alpha ? MaskFunction.MULTIPLY :
531-
MaskFunction.MULTIPLY_RGB_SET_ALPHA;
532-
533529
if(renderer.capabilities.logarithmicDepthBuffer) {
534530

535531
this.cocPass.fullscreenMaterial.defines.LOG_DEPTH = "1";

0 commit comments

Comments
 (0)