Axiom.Demos.DeferredShadingSystem.MiniLight.GetSquaredViewDepth C# (CSharp) Method

GetSquaredViewDepth() public method

public GetSquaredViewDepth ( Axiom camera ) : float
camera Axiom
return float
        public override float GetSquaredViewDepth( Axiom.Core.Camera camera )
        {
            if ( this._ignoreWorld )
            {
                return 0.0f;
            }
            else
            {
                Vector3 dist = this.camera.DerivedPosition - WorldPosition;
                return dist.LengthSquared;
            }
        }