General error in coderivative for orthogonal camera. Culprit of new bump failing on orthogonal cameras; bug #27492

Commiting bug kill by Sparky
This commit is contained in:
Daniel Salazar
2011-05-28 21:53:07 +00:00
parent d635a2b143
commit fc3904d7b3

View File

@@ -633,14 +633,14 @@ void shade_input_calc_viewco(ShadeInput *shi, float x, float y, float z, float *
dxco[0]= fx;
dxco[1]= 0.0f;
if(shi->facenor[2]!=0.0f)
dxco[2]= (shi->facenor[0]*fx)/shi->facenor[2];
dxco[2]= -(shi->facenor[0]*fx)/shi->facenor[2];
else
dxco[2]= 0.0f;
dyco[0]= 0.0f;
dyco[1]= fy;
if(shi->facenor[2]!=0.0f)
dyco[2]= (shi->facenor[1]*fy)/shi->facenor[2];
dyco[2]= -(shi->facenor[1]*fy)/shi->facenor[2];
else
dyco[2]= 0.0f;