Commit c2b3c504 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX #305] fixed lighting of surfaces

parent c2d2c9a9
......@@ -119,7 +119,9 @@ void main()
if ( type0 > 0 ) lookupTex(col, type0, tex0, threshold0, VaryingTexCoord0.xyz, alpha0, useCmap0);
}
if ( useLighting )
col = col + (ambient * col / 2.0) + (diffuse * col) + (specular * col / 2.0);
{
col = (ambient * col / 2.0) + (diffuse * col) + (specular * col / 2.0);
}
col = clamp(col, 0.0, 1.0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment