Skip to content

Commit 51e41db

Browse files
committed
Fixed error where plotter3d had a different hue than regular plotter
1 parent 1a1f81d commit 51e41db

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/shaders/plotter3d.frag

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ vec3 hsl2rgb(vec3 hsl) {
2020
}
2121

2222
vec3 domain_color(in vec2 z){
23-
float angle = atan(z.y, z.x);
24-
float hue = (angle / (2.0 * PI)) + 0.5;
23+
float angle = atan(z.y,z.x);
24+
float hue = (angle/(2.0 * PI));
2525
float light = (TWO_OVER_PI) * atan(length(z));
26-
return vec3(hue, 1.0, light);
26+
return vec3(hue,1.0f,light);
2727
}
2828

2929
void main(){

0 commit comments

Comments
 (0)