Returns square of the object distance from the camera (object "depth" from the camera view).

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public float CalculateViewDepthSq(
	Vector3 position
)

Parameters

position
Type: Vector3
Distance from the camera.

Return Value

Squared distance from the camera.

Remarks

This value is essential for rendering the transparent objects.

See Also