1
0
Fork 0

fix a typo

This commit is contained in:
Erik Hofman 2011-07-16 15:52:03 +02:00
parent e63ee56e25
commit 2e441b27b5

View file

@ -69,7 +69,7 @@ void main (void)
float a = dot(VNormal, -V);
vec2 s = vec2(dot(V, VTangent), dot(V, VBinormal));
// prevent a device by zero
// prevent a divide by zero
if (a > -1e-3 && a < 1e-3) a = 1e3;
s *= depth_factor / a;
ds = s;