mirror of
https://github.com/bvanroll/shaders.git
synced 2025-08-29 20:12:48 +00:00
ik versta da met de polar coordinats nu denk ik
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user