CAST
If this flag is set for a light emitting entity, the light will cast stencil
shadows. If it is set for a normal entity, no stencil shadows will be visible
on this entity. This is often used to suppress self-shadows.
Type:
flag
Remarks:
- When z-pass stencil shadows are active, take care that shadow casting lights
don't cast a shadow towards the camera. This limitation is normally kept by the
sun, but can be violated by low-flying lights.
-
This flag causes entities to be rendered after the stencil shadows. It can only be used for suppressing self-shadows when the stencil shadows are not rendered through StencilMap in a separate view stage.
Example:
my.CAST = ON; my.SHADOW = ON; // C-Script
set(my,SHADOW | CAST); // lite-C
See also:
shadow_stencil,
SHADOW, flags
► latest
version online