RwSetImmediateZRange(RwReal near, RwReal far);
Description
Set the Z buffer range used during Z buffering between an RwImmediateBegin() and RwImmediateEnd().
Arguments
near The value of the nearest possible value in camera space.
far The value of the furthest possible value in camera space.
Comments
By default in an RwImmediateBegin() .. RwImmediateEnd() block, the Z range from the near clipping plane to the far clipping plane is used. Especially if a 16 bit Z buffer is being used, this range might be too large to provide good rendering. If you know what the nearest Z and furthest Z points will have in camera space when performing rendering it is advisable to use this function to set the Z range explicitly using this function. This will provide optimal Z buffer resolution over the available range.
See Also