lightPosition0[2] = 12*sin(lightAngle0);\r
lightPosition0[3] = 0.0;\r
\r
+ direction0[0] = lightPosition0[0];\r
+ direction0[2] = lightPosition0[2];\r
+\r
/* Reposition the light source 1. */\r
lightPosition1[0] = 12*cos(lightAngle1);\r
lightPosition1[1] = lightHeight1;\r
lightPosition1[2] = 12*sin(lightAngle1);\r
lightPosition1[3] = 0.0;\r
\r
+ direction1[0] = lightPosition1[0];\r
+ direction1[2] = lightPosition1[2];\r
+\r
glPushMatrix();\r
\r
/* Perform scene rotations based on user mouse/keyboard input. */\r