Click or drag to resize
DigitalRuneBillboardRendererNearBias Property

Note: This API is now obsolete.

Gets or sets the factor used to bias the camera near plane when the z-buffer is reconstructed. (Only used when EnableOffscreenRendering is set.)

Namespace: DigitalRune.Graphics.Rendering
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
[ObsoleteAttribute("The NearBias is now determined by the RebuildZBufferRenderer stored in RenderContext[RenderContextKeys.RebuildZBufferRenderer].")]
public float NearBias { get; set; }

Property Value

Type: Single
The near bias factor. The default value is 1 (no bias).
Remarks

When off-screen rendering is used, the hardware depth buffer information is lost. This renderer restores the depth buffer when it combines the off-screen buffer with the render target in the final step. The restored depth buffer is not totally accurate. NearBias and FarBias can be used to bias the restored depth values to reduce z-fighting of any geometry which is rendered using the restored depth buffer.

See Also