UF_VIEW_light_attributes_s (view source)
 
Defined in: uf_view.h
 
Also known as:
 
Overview
The structure UF_VIEW_light_attributes_t below is used to define
the light attributes.


Data Members

red
int
Amount of red color to put in the light. Must be one of the following values [0-255]

green
int
Amount of green color to put in the light. Must be one of the following values [0-255]

blue
int
Amount of blue color to put in the light. Must be one of the following values [0-255]

intensity
double
Intensity of light. Must be in the range from 0.0 to 1.0

intensity_factor
UF_VIEW_light_intensity_factor_t
Intensity factor of light.
Only used for point light and spot light.
Only used when not constant fall off.
Settings are defined in
UF_VIEW_light_intensity_factor_t

fall_off
UF_VIEW_light_fall_off_t
Fall off setting of light.
Only used for point light and spot light.
Settings are defined in
UF_VIEW_light_fall_off_t

cone_angle
double
Value of cone angle for spot light. Must be between 0.0 and 180.0.

delta_angle
double
Value of delta angle for spot light. Must be between 0.0 and 180.0.

beam_fall_off
UF_VIEW_light_beam_fall_off_t
Beam fall for spot light.
Settings are defined in
UF_VIEW_light_beam_fall_off_t

scattering
logical
Spot light should use scattering or not. true if light is to use
scattering, false if not.

generate_shadows
logical
Light should generate shadows or not. true if light is to
generate shadows, false if not. Not used if ambient light or
eye light.

detail
UF_VIEW_light_detail_t
Detail setting for light. Not used if ambient light or
eye light. Settings are defined in
UF_VIEW_light_detail_t

edge
UF_VIEW_light_edge_t
Edge setting for light. Not used if ambient light or
eye light. Settings are defined in
UF_VIEW_light_edge_t