Radegast.Rendering.SceneObject.Occluded C# (CSharp) Method

Occluded() public method

public Occluded ( ) : bool
return bool
        public bool Occluded()
        {
            //hack
            //            if (!RenderSettings.OcclusionCullingEnabled) return false;
            //
            //            if (HasInvisibleFaces) return false;
            //
            //            if ((SimpleQueryID == -1 && AlphaQueryID == -1))
            //            {
            //                return false;
            //            }
            //
            //            if ((!HasAlphaFaces && !HasSimpleFaces)) return true;
            //
            //            int samples = 1;
            //            if (HasSimpleFaces && SimpleQueryID > 0)
            //            {
            //                Compat.GetQueryObject(SimpleQueryID, GetQueryObjectParam.QueryResult, out samples);
            //            }
            //            if (HasSimpleFaces && samples > 0)
            //            {
            //                return false;
            //            }
            //
            //            samples = 1;
            //            if (HasAlphaFaces && AlphaQueryID > 0)
            //            {
            //                Compat.GetQueryObject(AlphaQueryID, GetQueryObjectParam.QueryResult, out samples);
            //            }
            //            if (HasAlphaFaces && samples > 0)
            //            {
            //                return false;
            //            }
            //
            return true;
        }