Rectangle

Generators / Shapes

Binary rectangle mask with independent width, height, rotation, and rounded corners.

Select a node to adjust its parameters. Double-click a node to inspect.

Parameters

ParameterTypeDefaultRangeDescription
offset
Offset
vec2[0, 0]-1 to 1Shape offset from texture center in UV units.
size
Size
vec2[0.5, 0.5]0.01 to 2Rectangle width and height, measured against the shorter output dimension.
rotation
Rotation
float00 to 1Rotation in turns. 0.25 = 90°, 0.5 = 180°, 1.0 = 360°.
corner_radius
Corner Radius
float00 to 0.5Corner radius as a fraction of the smaller rectangle dimension. 0 = sharp corners, 0.5 = fully rounded.

Outputs

  • output (default format: r32float)