clipMaskFunction
Represents the GLSL function used to define the clipping mask for a shader.
The clipMaskFunction
defines a GLSL function clipMask
that takes a vec2
coordinate as input and outputs a float
value. The function is intended to determine how the clipping is applied based on the input coordinate. The return value typically indicates the mask's boundaries, such as a signed distance to a shape.
This property can be customized to define various shapes for clipping masks by overwriting it with specific GLSL code.
The default implementation of the clipMaskFunction
always returns -1.0
, meaning no clipping is applied unless overridden.