Gets the depth of the picked location in the 3D scene.
Namespace:
AGI.Foundation.Graphics
Assembly:
AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public virtual float Depth { get; }
Public Overridable ReadOnly Property Depth As Single
Get
public:
virtual property float Depth {
float get ();
}
abstract Depth : float32 with get
override Depth : float32 with get
Property Value
Type:
SingleRemarks Depth is adjusted for rendering with multiple view frustums so
it may be outside the range [0, 1] but it will never be negative.
Smaller depth values indicate objects closer to the camera.
See Also