Axiom.Demos.DeferredShadingSystem.MiniLight.GetSquaredViewDepth C# (CSharp) Метод

GetSquaredViewDepth() публичный Метод

public GetSquaredViewDepth ( Axiom camera ) : float
camera Axiom
Результат 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;
            }
        }