STATE_light_set_entity_to_light

 

 



  Set the target object that will be lit by our light.
   entity_to_light could be a handle to a group an object or a polygon.
   The default entity is the whole world (NULL)
   To make the function STATE_light_activate() you should change it to illuminate just the 
   the entity that needs lighting.
   Examples:
   A)
  		STATE_light_set_entity_to_light(my_light, polyogn_handle);
  		In this case when the light will be activated it will only influence
  		the given polygon.
   B)
  		STATE_light_set_entity_to_light(my_light, NULL);
  		NULL is a valid group_handle. It means the whole world
  		In this case when the light will be activated it will influence
  		the whole world.
   C)
  		STATE_light_set_entity_to_light(my_light, chair_group_handle);
  		When the light will be activated it will only light the chair
  		This is a nice way to paint a specific item in the world.
  
   Returns OK or VR_ERROR

 

 

Go to page 1      Select API

 

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