RwImmZBufferDepth(RwCamera *cam, RwReal depth);
Description
Finds the pixel space Z value for a camera space Z value.
Arguments
cam Camera which is being rendered to.
depth Camera space Z value.
Comments
This function should be used when using the Z buffer with 2d pixel space coordinates. It is also required if any perspectively correct textures are rendered (i.e. having the rwFORESHORTEN texture mode).
See Also