Skip to content
Permalink
Browse files
Deep blues were getting purple. Possibly due to rounding errors since…
… clamping values that are expected to be between 0 and 1 fixes it.

Fixing #16.
  • Loading branch information
michelf committed Jun 17, 2020
1 parent c8603cd commit d6b62e9304d70c81a27701c299db452a5ea170fe
Showing 1 changed file with 3 additions and 0 deletions.
@@ -229,6 +229,9 @@ void main()
// now shift *all* three proportional to the greatest shift...
s_rgb = s_rgb + ( adjust * d_rgb );

// fix issue where blues were getting purple
s_rgb = clamp(s_rgb, 0., 1.);

// anomalize
s_rgb = mix(c_rgb, s_rgb, anomalize);

0 comments on commit d6b62e9

Please sign in to comment.