C4 Engine
C4 Engine API Documentation

IndirectPortal::GetIndirectTransform

Defined in:  C4Portals.h
Returns the indirect transform.
Prototype

const Transform4D& GetIndirectTransform(voidconst;

Description
The GetIndirectTransform function returns the coordinate transform that an indirect portal applies to the camera. This determines what the camera position and orientation is on the "other side" of the portal.

For indirect portals that target the reflection buffer, the default indirect transform is a reflection in the world-space plane of the portal. For indirect portals that target any other rendering buffer, the default indirect transform is the identity, meaning that the camera position and orientation do not change.