C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

PortalObject::SetPortalFlags

Defined in:  C4Portals.h
Sets the portal flags.
Prototype

void SetPortalFlags(unsigned_int32 flags);

Parameters
flags The new portal flags.
Description
The SetPortalFlags function sets the portal flags to the value specified by the flags parameter, which can a combination (through logical OR) of the following values.
kPortalLightInhibit No lights shine through the portal.
kPortalStaticLightInhibit Only dynamic lights shine through the portal.
kPortalShadowMapInhibit Portal is not followed when rendering a shadow map.
kPortalFogInhibit Do not apply fog through the portal (direct portal only).
kPortalSkyboxInhibit Do not render the skybox through the portal (remote portal only).
kPortalOverrideClearColor Override the camera clear color when rendering through the portal (remote portal only).
kPortalSeparateShadowMap Any shadow map rendered through the portal is not reused (remote portal only, refraction buffer only).
kPortalAllowRemoteLight Allow lights to shine through the portal (remote portal only).
kPortalObliqueFrustum Use an oblique view frustum when rendering through the portal (remote portal only).
kPortalRecursive Allow the portal to be rendered recursively (remote portal only).
kPortalDistant Render only infinitely distant objects, like the skybox, through the portal (remote portal only).
See Also

PortalObject::GetPortalFlags