shadow_stencil

Determines the type of dynamic shadows cast by models.

Range:

off - Z buffer shadows (default).
on - Stencil buffer shadows.

Type:

var, redefinable.

Remarks:

Stencil buffer shadows look better than z buffer shadows: they 'bend' around corners, and objects cast shadows on themselves. Due to the hard shadow edges, especially with self shadows, they work best with high polygon models and rather dark levels with hard light contrasts. Stencil buffer shadows have the following restrictions:

Z buffer shadows behave the following way:

Example:

var shadow_stencil = on;

See also:

cast, shadow, shadow_threshold