ik versta da met de polar coordinats nu denk ik

This commit is contained in:
2024-06-07 20:57:32 +02:00
parent 0da80296f2
commit 13b7d0f711
6 changed files with 216 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ const vec3 uDColor = vec3(.0,.33,.67);
//get colors from http://dev.thi.ng/gradients/
vec3 cosPalette(float t) { return uAColor + uBColor*cos(6.28318*(uCColor*t+uDColor)); }
float hexSDF(vec2 st) {
st = abs(st*2.-1.);
return max(abs(st.y),st.x*.866025+st.y*.5);