Rectangle
Generators / Shapes
Binary rectangle mask with independent width, height, rotation, and rounded corners.
Parameters
| Parameter | Type | Default | Range | Description |
|---|---|---|---|---|
offsetOffset | vec2 | [0, 0] | -1 to 1 | Shape offset from texture center in UV units. |
sizeSize | vec2 | [0.5, 0.5] | 0.01 to 2 | Rectangle width and height, measured against the shorter output dimension. |
rotationRotation | float | 0 | 0 to 1 | Rotation in turns. 0.25 = 90°, 0.5 = 180°, 1.0 = 360°. |
corner_radiusCorner Radius | float | 0 | 0 to 0.5 | Corner radius as a fraction of the smaller rectangle dimension. 0 = sharp corners, 0.5 = fully rounded. |
Outputs
output(default format:r32float)