General error in coderivative for orthogonal camera. Culprit of new bump failing...
authorDaniel Salazar <zanqdo@gmail.com>
Sat, 28 May 2011 21:53:07 +0000 (21:53 +0000)
committerDaniel Salazar <zanqdo@gmail.com>
Sat, 28 May 2011 21:53:07 +0000 (21:53 +0000)
Commiting bug kill by Sparky

source/blender/render/intern/source/shadeinput.c

index e575776ec79329d0f8583e1c48d409d11ac2db82..77141d9b4455ccf0ad1f6bc55c3c8d2dff0552e0 100644 (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;