예제 #1
0
        // *** Render start determiners
        private int GetStartRenderYNormal(AlphaBlockCollection Blocks, int X, int Z)
        {
            int Y = Blocks.GetHeight(X, Z);

            if (Y > 255)
            {
                Y = 255;
            }
            if (Y == 0)
            {
                return(_ColourPalette.DepthOpacities[Blocks.GetID(X, Y, Z)][Blocks.GetData(X, Y, Z)] == 0 ? -1 : 0);
            }
            return(Y);
        }