UF_VIEW_fog_options_s (view source)
 
Defined in: uf_view.h
 
Also known as:
 
Overview
Structure UF_VIEW_fog_options_t specifies options that control the
application of fog in a view of type UF_VIEW_MODEL_TYPE.

Function
UF_VIEW_ask_fog_options
returns the fog options of a view, and function
UF_VIEW_set_fog_options
modifies the fog options of a view.


Data Members

fog_mode
int
Fog mode in view
The following constants are valid :
UF_VIEW_FOG_OFF,
UF_VIEW_FOG_LINEAR,
UF_VIEW_FOG_LIGHT and
UF_VIEW_FOG_HEAVY

fog_color [ 3 ]
double
Fog color
[0] = red,
[1] = green,
[2] = blue

Each color has a range from 0.0 to 1.0.

fog_front
double
Front fog plane has a range from 0 to 100
and is only valid for
fog_mode = UF_VIEW_FOG_LINEAR

fog_back
double
Back fog plane has a range from 0 to 100
and is only valid for
fog_mode = UF_VIEW_FOG_LINEAR.

fog_rate
double
The fog density which has a range from 0
to 100. This setting is only valid when
the fog_mode is set to
UF_VIEW_FOG_LIGHT or UF_VIEW_FOG_HEAVY.