diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-18 03:12:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-18 03:12:15 +0400 |
commit | c0bd076bfd27fab3f2d468c85206b59d1c7ab29e (patch) | |
tree | 8c892a28589a6a4608ce15ccd1e5cb989f9334b2 /source/blender/render/intern | |
parent | 7862b2fa13c0437d9c17eae78e7b79a421dacf05 (diff) |
style cleanup: and add missing files to cmake
Diffstat (limited to 'source/blender/render/intern')
-rw-r--r-- | source/blender/render/intern/source/zbuf.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/render/intern/source/zbuf.c b/source/blender/render/intern/source/zbuf.c index 78e0810fb77..cfbdf04d75a 100644 --- a/source/blender/render/intern/source/zbuf.c +++ b/source/blender/render/intern/source/zbuf.c @@ -1703,13 +1703,13 @@ void projectverto(const float v1[3], float winmat[][4], float adr[4]) /* calcs homogenic coord of vertex v1 */ float x, y, z; - x= v1[0]; - y= v1[1]; - z= v1[2]; - adr[0]= x*winmat[0][0] + z*winmat[2][0] + winmat[3][0]; - adr[1]= y*winmat[1][1] + z*winmat[2][1] + winmat[3][1]; - adr[2]= z*winmat[2][2] + winmat[3][2]; - adr[3]= z*winmat[2][3] + winmat[3][3]; + x = v1[0]; + y = v1[1]; + z = v1[2]; + adr[0] = x * winmat[0][0] + z * winmat[2][0] + winmat[3][0]; + adr[1] = y * winmat[1][1] + z * winmat[2][1] + winmat[3][1]; + adr[2] = z * winmat[2][2] + winmat[3][2]; + adr[3] = z * winmat[2][3] + winmat[3][3]; //printf("hoco %f %f %f %f\n", adr[0], adr[1], adr[2], adr[3]); } @@ -1721,13 +1721,13 @@ void projectvert(const float v1[3], float winmat[][4], float adr[4]) /* calcs homogenic coord of vertex v1 */ float x, y, z; - x= v1[0]; - y= v1[1]; - z= v1[2]; - adr[0]= x*winmat[0][0]+ y*winmat[1][0]+ z*winmat[2][0]+ winmat[3][0]; - adr[1]= x*winmat[0][1]+ y*winmat[1][1]+ z*winmat[2][1]+ winmat[3][1]; - adr[2]= x*winmat[0][2]+ y*winmat[1][2]+ z*winmat[2][2]+ winmat[3][2]; - adr[3]= x*winmat[0][3]+ y*winmat[1][3]+ z*winmat[2][3]+ winmat[3][3]; + x = v1[0]; + y = v1[1]; + z = v1[2]; + adr[0] = x * winmat[0][0] + y * winmat[1][0] + z * winmat[2][0] + winmat[3][0]; + adr[1] = x * winmat[0][1] + y * winmat[1][1] + z * winmat[2][1] + winmat[3][1]; + adr[2] = x * winmat[0][2] + y * winmat[1][2] + z * winmat[2][2] + winmat[3][2]; + adr[3] = x * winmat[0][3] + y * winmat[1][3] + z * winmat[2][3] + winmat[3][3]; } /* ------------------------------------------------------------------------- */ |