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;
            }
        }