Click or drag to resize
Ab4d.SharpEngine logo

CameraMinNearPlaneDistance Property

When MinNearPlaneDistance is set to any value that is not float.NaN and IsAutomaticNearPlaneDistanceCalculation is true, the calculated near plane distance is never smaller then the specified value. Default value is NaN.

Namespace: Ab4d.SharpEngine.Cameras
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public float MinNearPlaneDistance { get; set; }

Property Value

Single

Implements

IAutomaticNearFarPlaneCameraMinNearPlaneDistance
Remarks

When MinNearPlaneDistance is set to any value that is not float.NaN and IsAutomaticNearPlaneDistanceCalculation is true, the calculated near plane distance is never smaller then the specified value.

This value defines how close to the camera the objects are still rendered - positions that are closer to the camera then the MinNearPlaneDistance are not rendered. Setting this value to a value that is bigger then the calculated NearPlaneDistance increase the resolution of depth buffer and can prevent z-fighting problems.

Default value is NaN.

See Also