Returns square of the object distance from the camera (object "depth" from the camera view).
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
Parameters
- camera
- Type: SGP.XSpace..::.XCamera
Camera from whose view is the object rendered.
Return Value
Squared distance from the camera.
Remarks
This value is essential for rendering the transparent objects.