예제 #1
0
        public System.Boolean R_CullBox(Single[] mins, Single[] maxs)
        {
            if (r_nocull.value != 0)
            {
                return(false);
            }
            for (var i = 0; i < 4; i++)
            {
                if (Math3D.BoxOnPlaneSide(mins, maxs, frustum[i]) == 2)
                {
                    return(true);
                }
            }

            return(false);
        }