SHADOW
If this flag is set, a model casts a dynamic shadow.
Type:
flagRemarks:
- This flag can be set in WED as well.
- Casting a shadow can increase the model rendering time by around
50%.
- For reducing the rendering time, shadows
are projected from the model's next LOD step if it exists. This can
be
adjusted
by shadow_lod.
- A model can cast z buffer or stencil buffer shadows. Some restrictions
apply - see shadow_stencil.
- Z buffer shadows are projected by the sun. The shadow direction
results from the sun azimut and elevation (sun_angle).
Stencil shadows are projected by the sun or by dynamic light sources
(CAST).
- Stencil shadows are only cast by completely non-transparent
models. The model skin must not contain an alpha channel.
- The transparency of stencil shadows can be set through mat_shadow.alpha (default
= 50). Their color can be set through mat_shadow.diffuse_blue,
mat_shadow.diffuse_green, and mat_shadow.diffuse_red (default
= 0,0,0 = black).
Example:
set(my,SHADOW); // lite-C
my.SHADOW = ON; // C-Script
See also:
sun_angle, shadow_stencil, CAST, shadow_threshold, shadow_lod