Add an external mask filter whose mask object never changes after creation. The mask texture is rendered once and cached instead of being re-rendered every frame.
The GameObject to apply the mask to.
The GameObject to use as the mask.
(default false) Whether to automatically update the mask when the mask object changes.
false
The Mask controller; set needsUpdate = true on it after changing the mask object.
needsUpdate = true
Add an external mask filter whose mask object never changes after creation. The mask texture is rendered once and cached instead of being re-rendered every frame.