Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
rougier committed Sep 17, 2017
2 parents eacfde5 + 3ede4f2 commit a04b9a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion glumpy/library/colormaps/ice.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

vec3 colormap_ice(float t)
{
return vec3(t, t, 1.0);
t = 1 - t;
return mix(mix(vec3(1,1,1), vec3(0,1,1), t),
mix(vec3(0,1,1), vec3(0,0,1), t*t), t);
}

vec3 colormap_ice(float t, vec3 under, vec3 over)
Expand Down

0 comments on commit a04b9a7

Please sign in to comment.