C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

Geometry::GetPerspectiveExclusionMask

Defined in:  C4Geometries.h
Returns the perspective exclusion mask.
Prototype

unsigned long GetPerspectiveExclusionMask(voidconst;

Description
The GetPerspectiveExclusionMask function returns the perspective exclusion mask that determines from what camera perspectives the geometry is visible. The mask can be a combination (through logical OR) of the following values.
kPerspectiveDirect The perspective of the primary camera used to render the world.
kPerspectiveReflection The perspective of a camera used to render a reflection buffer.
kPerspectiveRefraction The perspective of a camera used to render a refraction buffer.
kPerspectiveCameraWidget The perspective of a camera used to render an image for a camera widget in a panel.
kPerspectiveRemotePortal The perspective of a camera used to render through a remote portal, but into the primary buffer.
kPerspectiveAmbientSpace The perspective of a camera used to generate an ambient space texture map.
For any bits that are set in the perspective exclusion mask, the geometry is not rendered for cameras having the matching perspective. The initial value of the mask is zero, meaning that the geometry is rendered from all camera perspectives.
See Also

Geometry::SetPerspectiveExclusionMask