STATE_light_point_at

 

 



   Sets the direction of the light. The direction of the light is relevant only if the 
   light type is set to be directional.
   The direction is set by giving a point in the world towards which the light should be pointed
   See also STATE_light_set_direction()
   Example:
   double location[3]={0,0,10000};   we make a sun so let put it up in the sky
   DWORD my_light=STATE_light_create("the sun", location);
   double point={0,0,0};   The sun should be pointing down
   STATE_light_point_at(my_light, point);
   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 ...

 

 

Go to page 1      Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com