|
Sets the direction of the light. The direction of the light is relevant only if the
light type is set to be directional.
Note that a direction of {1,1,1} is exactly the same as {2,2,2}
Example:
double location[3]={0,0,0}
DWORD my_light=STATE_light_create("my_light", location);
double direction={1,1,0};
STATE_light_set_direction(my_light, direction);
STATE_light_set_type_of_light(my_light, LIGHT_DEFAULT_POINTED_LIGHT); by default the light is not directional.
STATE_light_activate(my_light, LIGHT_SET); let there be light ...
|