comparison Renderer/Engine/viewer.cc @ 1144:e068c1269292 draft

light fix
author Yutaka_Kinjyo
date Sat, 19 Feb 2011 03:54:12 +0900
parents 786e800abfb4
children 4e898dca4ab9
comparison
equal deleted inserted replaced
1143:786e800abfb4 1144:e068c1269292
90 this->manager = manager; 90 this->manager = manager;
91 91
92 if (spe_num == 0) spe_num = 1; 92 if (spe_num == 0) spe_num = 1;
93 93
94 sgroot = new SceneGraphRoot(this->width, this->height, manager); 94 sgroot = new SceneGraphRoot(this->width, this->height, manager);
95 //sgroot->tmanager = manager;
96 95
97 int light_num = 4; 96 int light_num = 4;
98 int size = sizeof(float)*4*light_num; //xyz+alfa(4) * light_num(4) 97 int size = sizeof(float)*4*light_num; //xyz+alfa(4) * light_num(4)
99 int light_size = size / sizeof(float); 98 int light_size = size / sizeof(float);
100 99