Fix negative value that introduces a bug on nvidia

This commit is contained in:
vlj 2014-03-30 21:57:01 +02:00
parent bfdba01f2b
commit 0dae1cf911

View File

@ -42,6 +42,6 @@ void main(void)
float g = dot(extendednormal, gmat * extendednormal);
float b = dot(extendednormal, bmat * extendednormal);
Diff = 0.25 * vec4(r, g, b, .1);
Diff = max(0.25 * vec4(r, g, b, .1), vec4(0.));
Spec = vec4(0.);
}