shader fix

This commit is contained in:
Dave Griffiths 2009-07-30 16:10:10 +01:00
parent a4c5baf5ad
commit 4c710ab044

View file

@ -25,7 +25,7 @@ void main()
if (lambert > 1.0-HighlightSize) colour = HighlightColour;
if (lambert < ShadowSize) colour = ShadowColour;
if (dot(n,v) < OutlineWidth) colour = vec4(0,0,0,1);
if (dot(n,v) < 0) colour = MidColour*texture2D(BaseMap, T);
if (dot(n,v) < 0.0) colour = MidColour*texture2D(BaseMap, T);
gl_FragColor = colour;
}