Optional
options: Partial<MaskRendererOptions>The color of the mask
Mask height in pixels (only for rectangle)
The render layer
X-axis and Y-axis offset
Change the opacity between 1 and 0
Mask radius in pixels (only for circumference)
Mask rotation in radians
Mask shape: Rectangle, Circumference or Polygon
Polygon vertices (only for polygon)
Mask width in pixels (only for rectangle)
The MaskRenderer component renders filled shapes like rectangles, circles, or polygons.
It supports different shape types with configurable dimensions, colors, positioning and rotation.
Shapes can be rendered with variable opacity and assigned to specific render layers.
This component is useful for creating UI elements, visual effects, or masking other rendered content.
Example
Example
Example