Skip to content

Commit f96aa01

Browse files
committed
Add maskFunction accessors
1 parent a0f0453 commit f96aa01

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/effects/DepthOfFieldEffect.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,24 @@ export class DepthOfFieldEffect extends Effect {
264264

265265
}
266266

267+
/**
268+
* The mask function. Default is `MULTIPLY_RGB_SET_ALPHA`.
269+
*
270+
* @type {MaskFunction}
271+
*/
272+
273+
get maskFunction() {
274+
275+
return this.maskPass.fullscreenMaterial.maskFunction;
276+
277+
}
278+
279+
set maskFunction(value) {
280+
281+
this.maskPass.fullscreenMaterial.maskFunction = value;
282+
283+
}
284+
267285
/**
268286
* The circle of confusion material.
269287
*

0 commit comments

Comments
 (0)