Davide Santini
More books by Davide Santini…
“{ "myRectShape": { "prefix": "myRectShape", "body": [ "float ${NAME}(float cx, float cy, float sx, float sy){", "\tfloat myRectX = step(cx - sx / 2.0, vUV.s) - step(cx + sx / 2.0, vUV.s);", "\tfloat myRectY = step(cy - sy / 2.0, vUV.t) - step(cy + sy / 2.0, vUV.t);", "\treturn myRectX * myRectY;", “}” ], “description”: “Draw a rectangle from its center position cx and cy, and size sx and sy” }, }”
― TouchDesigner Introduction to GLSL
― TouchDesigner Introduction to GLSL
Is this you? Let us know. If not, help out and invite Davide to Goodreads.