diff TaskManager/Test/test_render/task/DrawSpan.cpp @ 338:d2caa52c1828 draft

add normal vector rotate
author e065725@yutaka.st.ie.u-ryukyu.ac.jp
date Sat, 27 Jun 2009 20:30:26 +0900
parents 67e82512b15b
children 9738837c225c
line wrap: on
line diff
--- a/TaskManager/Test/test_render/task/DrawSpan.cpp	Tue Jun 23 20:53:31 2009 +0900
+++ b/TaskManager/Test/test_render/task/DrawSpan.cpp	Sat Jun 27 20:30:26 2009 +0900
@@ -553,7 +553,7 @@
     int flag;
     float normal_vector[4] = {normal_x,normal_y,normal_z,0};
     // 光のベクトル,きめうちしちゃった。どうにかする
-    float light_vector[4] = {0,0,1,0};
+    float light_vector[4] = {0,0,-1,0};
     float inner_product;
 
     // 引数で受け取った color の rgb 情報の抜き出し