chamferRectangleSdf2d

chamferRectangleSdf2d

sdf2d
chamferRectangleSdf2d
RayTK
v0.42

Rectangle with corners cut off at angles.

Parameters

Name Description Regular Handling Read-Only Handling
Scale

The size of the rectangle on the x and y axes.

Runtime Baked
Chamfer

The distance of the corner cuts on each axis. Keep these the same to have 45 degree cuts.

Runtime Baked

Inputs

  • Scale Field: (optional) Field that multiplies the scale of the rectangle.
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
  • Chamfer Field: (optional) Field that overrides the chamfer distances.
    • Coordinate Types: vec2
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables From Inputs: scaleField