1
0
forked from mirrors/0ad

Fix shlight.vs for ATI cards.

The NVidia shader compiler is not as strict as the ATI compiler.

This was SVN commit r2856.
This commit is contained in:
prefect
2005-10-05 19:29:52 +00:00
parent 13697b8512
commit d2ee50031c
@@ -10,7 +10,7 @@ vec3 lighting(vec3 normal)
color += SHCoefficients[4]*(normal.x*normal.z);
color += SHCoefficients[5]*(normal.z*normal.y);
color += SHCoefficients[6]*(normal.y*normal.x);
color += SHCoefficients[7]*(3*normalsq.z-1);
color += SHCoefficients[7]*(3.0*normalsq.z-1.0);
color += SHCoefficients[8]*(normalsq.x-normalsq.y);
return color;
}