We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc609fc commit 7f6e394Copy full SHA for 7f6e394
src/effects/DepthOfField.tsx
@@ -58,8 +58,8 @@ export const DepthOfField = forwardRef(function DepthOfField(
58
// Depth texture for depth picking with optional packing strategy
59
if (depthTexture) effect.setDepthTexture(depthTexture.texture, depthTexture.packing as DepthPackingStrategies)
60
// Temporary fix that restores DOF 6.21.3 behavior, everything since then lets shapes leak through the blur
61
- const maskMaterial = (effect as any).maskPass.getFullscreenMaterial()
62
- maskMaterial.maskFunction = MaskFunction.MULTIPLY_RGB_SET_ALPHA
+ const maskPass = (effect as any).maskPass
+ maskPass.maskFunction = MaskFunction.MULTIPLY_RGB_SET_ALPHA
63
return effect
64
}, [
65
camera,
0 commit comments