Click or drag to resize
DigitalRunePerspectiveProjectionNearClipPlane Property
Gets or sets the near clip plane in view space.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public Nullable<Plane> NearClipPlane { get; set; }

Property Value

Type: NullablePlane
The near clip plane in view space. The plane normal must point to the viewer.
Remarks

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.

See Also