“{ "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
Share this quote:
Friends Who Liked This Quote
To see what your friends thought of this quote, please sign up!
0 likes
All Members Who Liked This Quote
None yet!
This Quote Is From
Browse By Tag
- love (101904)
- life (80056)
- inspirational (76448)
- humor (44550)
- philosophy (31231)
- inspirational-quotes (29065)
- god (26995)
- truth (24859)
- wisdom (24822)
- romance (24505)
- poetry (23480)
- life-lessons (22774)
- quotes (21228)
- death (20651)
- happiness (19117)
- hope (18686)
- faith (18531)
- inspiration (17589)
- spirituality (15849)
- relationships (15760)
- life-quotes (15670)
- motivational (15579)
- religion (15455)
- love-quotes (15427)
- writing (14996)
- success (14236)
- motivation (13509)
- travel (13398)
- time (12917)
- motivational-quotes (12676)
