rhombusSdf2d
sdf2d
rhombusSdf2d
RayTK
v0.42
SDF for a 2D rhombus (diamond), with its corners aligned to the axes.
Parameters
| Name | Description | Regular Handling | Read-Only Handling |
|---|---|---|---|
Scale | The size of the rhombus along the X and Y axes. | Runtime | Baked |
Inputs
-
Scale Field: (optional)- Coordinate Types:
vec2 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
floatvec4
- Coordinate Types: