Mercurial > hg > Members > koba > t_dandy
diff Dandy.cc @ 70:cee55c8365e9 default tip
fix
author | Kazuma |
---|---|
date | Thu, 19 May 2016 18:52:26 +0900 |
parents | b99e4366b913 |
children |
line wrap: on
line diff
--- a/Dandy.cc Sun May 22 10:19:58 2011 +0900 +++ b/Dandy.cc Thu May 19 18:52:26 2016 +0900 @@ -300,17 +300,17 @@ CameraPtr camera = sgroot->sgroot->getCamera(); sgroot->sgroot->flip(); - sgroot->sgroot->lightCalc(); root = sgroot->createSceneGraph(); root->xyz[0] = 0; root->xyz[1] = 0; root->xyz[2] = 30.0f; + sgroot->sgroot->lightCalc(root); /*親の回転、座標から、子の回転、座標を算出*/ get_matrix(root->matrix, root->angle, root->xyz, camera->matrix); /*法線用の行列。Cameraの行列を抜いている(Cameraのコンストラクタで、単位行列にしている)*/ - get_matrix(root->real_matrix, root->angle, root->xyz, camera->real_matrix); + // get_matrix(root->real_matrix, root->angle, root->xyz, camera->real_matrix); sgroot->setSceneData(root); }