File: ClearMaskPass.md | Updated: 11/15/2025
This pass can be used to clear a mask previously defined with MaskPass.
const clearPass = new ClearMaskPass();
composer.addPass( clearPass );
Constructs a new clear mask pass.
Overwritten to disable the swap.
Default is false.
Overrides: Pass#needsSwap
Performs the clear of the currently defined mask.
renderer | The renderer.
---|---
writeBuffer | The write buffer. This buffer is intended as the rendering destination for the pass.
readBuffer | The read buffer. The pass can access the result from the previous pass from this buffer.
deltaTime | The delta time in seconds.
maskActive | Whether masking is active or not.
Overrides: Pass#render