GLSL_SDF_ROUNDED_ROTATED_BOX
constGLSL_SDF_ROUNDED_ROTATED_BOX: ā\nfloat sdfRoundedRotatedBox(vec2 p, vec2 halfSize, float angle, float radius) {\n float c = cos(-angle);\n float s = sin(-angle);\n vec2 rotatedP = mat2(c, -s, s, c) * p;\n return sdfRoundedBox(rotatedP, halfSize, radius);\n}\nā
Defined in: packages/sigma/src/rendering/glsl.ts:105
SDF for a rotated rounded box. Rotates the point by -angle to align with the box, then computes rounded box SDF. Requires sdfRoundedBox to be defined before this.