We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a1f81d commit 51e41dbCopy full SHA for 51e41db
1 file changed
src/shaders/plotter3d.frag
@@ -20,10 +20,10 @@ vec3 hsl2rgb(vec3 hsl) {
20
}
21
22
vec3 domain_color(in vec2 z){
23
- float angle = atan(z.y, z.x);
24
- float hue = (angle / (2.0 * PI)) + 0.5;
+ float angle = atan(z.y,z.x);
+ float hue = (angle/(2.0 * PI));
25
float light = (TWO_OVER_PI) * atan(length(z));
26
- return vec3(hue, 1.0, light);
+ return vec3(hue,1.0f,light);
27
28
29
void main(){
0 commit comments