|
Set the distance that the light source can reach. The strength of the light is
decreasing as it gets further away from the light source.
A distance reach of -1 has a special meaning. It means an infinite reach.
This is the default (infinite reach) so in order to see the effect of the distance
one needs to call this function first with a value different than -1.
Returns OK or VR_ERROR.
Example:
STATE_light_set_distance_reach(my_light, 100000);
|