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 GetViewDepthSq(
	XCamera camera
)

Parameters

camera
Type: SGP.XSpace..::.XCamera
Camera from whose view is the object rendered.

Return Value

Squared distance from the camera.

Implements

IXRenderableTransform..::.GetViewDepthSq(XCamera)

Remarks

This value is essential for rendering the transparent objects.

See Also