Update primarycolors.glsl

This commit is contained in:
myownfriend 2014-05-21 16:29:25 -04:00
parent c2e5e030b0
commit 41f13f9c99
1 changed files with 6 additions and 3 deletions

View File

@ -35,7 +35,8 @@ void main()
} }
} }
if (c0.r > c0.b && c0.g > c0.b){ if (c0.r > c0.b && c0.g > c0.b)
{
if (c0.r < c0.g + 0.05 && c0.g < c0.r + 0.05) if (c0.r < c0.g + 0.05 && c0.g < c0.r + 0.05)
{ {
red = 0.7; red = 0.7;
@ -64,12 +65,14 @@ void main()
blue = 0.7; blue = 0.7;
green = 0.7; green = 0.7;
} }
else if (c0.g > c0.b + 0.05){ else if (c0.g > c0.b + 0.05)
{
red = 0.05; red = 0.05;
blue = 0.05; blue = 0.05;
green = 0.7; green = 0.7;
} }
else if (c0.b > c0.g + 0.05){ else if (c0.b > c0.g + 0.05)
{
red = 0.05; red = 0.05;
blue = 0.7; blue = 0.7;
green = 0.05; green = 0.05;