C4 Engine
C4 Engine API Documentation

LightObject::SetLightFlags

Defined in:  C4LightObjects.h
Sets the light flags.
Prototype

void SetLightFlags(uint32 flags);

Parameters
flags The new light flags.
Description
The SetLightFlags function sets the light flags to the value specified by the flags parameter, which can be a combination (through logical OR) of the following constants.
kLightStatic The light is static (does not move).
kLightShadowInhibit The light does not cast shadows.
kLightGenerator The light generates a projected texture.
kLightUnified The light can be combined with ambient lighting to produce unified shaders (infinite light only).
kLightPortalInhibit The light does not shine through portals.
kLightConfined The light is confined to a small sphere (point light only).
kLightInstanceShadowSpace If the light is not directly connected to a shadow space, then it should use the shadow space connected by an instance super node.
kLightAtmosphereShadow The atmospheric shadowing effect is rendered for the light (infinite light only). Ignored if the kLightShadowInhibit flag is set.
kLightRootZoneInhibit The light's illumination tree should be rooted only in zones that connect to it and not its containing zone (infinite light only).
The kLightGenerator flag only pertains to depth lights, cube lights, and spot lights. It indicates that a projected texture should be generated for a light during the development process.
See Also

LightObject::GetLightFlags