PerspectiveProjectionNearClipPlane Property |
Namespace: DigitalRune.Graphics
When rendering mirrors or portals, the objects before the mirror or portal should not be rendered. This could be solved using clip planes, but these clip planes need to be supported by all shaders. Alternatively, we can also solve this problem by creating a view frustum where the near plane is parallel to the clip plane - such frustums are called oblique view frustums because the near plane (and also the far plane) are tilted compared to standard view frustums.
Use the property NearClipPlane to set a clip plane for the near view-plane. Setting a near clip plane changes the projection matrix. However, it does not affect the shape (see ViewVolume) of the Projection!
For general information about oblique view frustums, see http://www.terathon.com/code/oblique.html.