Mercurial > hg > Members > kono > Cerium
diff Renderer/Engine/task/CreatePolygonFromSceneGraph.cc @ 1031:7fafe412c28f
OpenGL mode fix
author | Yutaka_Kinjyo |
---|---|
date | Tue, 16 Nov 2010 14:57:20 +0900 |
parents | 34a9ba655fbe |
children |
line wrap: on
line diff
--- a/Renderer/Engine/task/CreatePolygonFromSceneGraph.cc Mon Nov 15 22:39:25 2010 +0900 +++ b/Renderer/Engine/task/CreatePolygonFromSceneGraph.cc Tue Nov 16 14:57:20 2010 +0900 @@ -186,9 +186,13 @@ //normal3[3] = 1.0f; normal3[3] = 0.0f; - ApplyNormalMatrix(normal1,sg->real_matrix); - ApplyNormalMatrix(normal2,sg->real_matrix); - ApplyNormalMatrix(normal3,sg->real_matrix); + //ApplyNormalMatrix(normal1,sg->real_matrix); + //ApplyNormalMatrix(normal2,sg->real_matrix); + //ApplyNormalMatrix(normal3,sg->real_matrix); + + ApplyMatrix(normal1,sg->real_matrix); + ApplyMatrix(normal2,sg->real_matrix); + ApplyMatrix(normal3,sg->real_matrix); normal1[0] /= normal1[2]; normal1[1] /= normal1[2];