File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff 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" ;
You can’t perform that action at this time.
0 commit comments