Mercurial > hg > Game > Cerium
diff Renderer/Engine/SceneGraphRoot.cc @ 738:819966538b8a draft
light
author | yutaka@localhost.localdomain |
---|---|
date | Thu, 31 Dec 2009 04:07:18 +0900 |
parents | 24054155368c |
children | 4d83a6a958fd |
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraphRoot.cc Sun Dec 27 20:49:38 2009 +0900 +++ b/Renderer/Engine/SceneGraphRoot.cc Thu Dec 31 04:07:18 2009 +0900 @@ -439,6 +439,8 @@ c->frame = t->frame; /*親の回転、座標から、子の回転、座標を算出*/ get_matrix(c->matrix, c->angle, c->xyz, cur_parent->matrix); + /*法線用の行列。Cameraの行列を抜いている(Cameraのコンストラクタで、単位行列にしている)*/ + get_matrix(c->real_matrix, c->angle, c->xyz, cur_parent->real_matrix); } if (t->children != NULL && c != NULL) {