Geometry::SetPerspectiveExclusionMask
Defined in: C4Geometries.h
Sets the perspective exclusion mask.
Prototype
void SetPerspectiveExclusionMask(unsigned long mask);
Parameters
mask |
The new perspective exclusion mask.
|
Description
The SetPerspectiveExclusionMask function sets the perspective exclusion mask that determines from what camera perspectives the geometry is visible to the value specified by the mask parameter. 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::GetPerspectiveExclusionMask
|