Mercurial > hg > Members > kono > Cerium
comparison Renderer/Engine/SceneGraphRoot.cc @ 765:dc26593f8c40
simd
author | yutaka@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Wed, 10 Feb 2010 19:33:27 +0900 |
parents | 987d4cced279 |
children | 2a00c1f470b7 |
comparison
equal
deleted
inserted
replaced
764:987d4cced279 | 765:dc26593f8c40 |
---|---|
379 | 379 |
380 ApplyMatrix(&light_vector[i*4], light[i]->matrix); | 380 ApplyMatrix(&light_vector[i*4], light[i]->matrix); |
381 | 381 |
382 light_vector[i*4] /= light_vector[i*4+2]; | 382 light_vector[i*4] /= light_vector[i*4+2]; |
383 light_vector[i*4+1] /= light_vector[i*4+2]; | 383 light_vector[i*4+1] /= light_vector[i*4+2]; |
384 | |
385 /*SIMD演算のため*/ | |
386 light_vector[i*4+2] *= -1; | |
387 light_vector[i*4+3] *= -1; | |
384 | 388 |
385 } | 389 } |
386 | 390 |
387 | 391 |
388 if(sg_exec_tree != NULL) { | 392 if(sg_exec_tree != NULL) { |