Rectangle

Rectangular mask with optional rotation and rounded corners.

Select a node to adjust its parameters.

Parameters

ParameterTypeDefaultRangeDescription
offset
Offset
vec2[0, 0]-1 to 1Shape offset from texture center in UV units.
scale
Scale
float10.01 to 4Multiplies width and height equally, preserving proportions. 1 keeps the original size.
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)
Browse documentation