| BillboardRendererNearBias 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.RenderingAssembly: 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; }
<ObsoleteAttribute("The NearBias is now determined by the RebuildZBufferRenderer stored in RenderContext[RenderContextKeys.RebuildZBufferRenderer].")>
Public Property NearBias As Single
Get
Set
public:
[ObsoleteAttribute(L"The NearBias is now determined by the RebuildZBufferRenderer stored in RenderContext[RenderContextKeys.RebuildZBufferRenderer].")]
property float NearBias {
float get ();
void set (float value);
}
[<ObsoleteAttribute("The NearBias is now determined by the RebuildZBufferRenderer stored in RenderContext[RenderContextKeys.RebuildZBufferRenderer].")>]
member NearBias : float32 with get, set
Property Value
Type:
SingleThe 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