Esempio n. 1
0
            internal readonly uint GetColor(uint x, uint y)
            {
                var  alphaValue = (byte)((AlphaBlock[y] >> (int)(x * 4)) & 0b1111);
                uint alpha      = ((uint)alphaValue * 0b10001u) << 24;

                return(Color.GetColorDXT3(x, y) | alpha);
            }
        internal readonly uint GetColor(Vector2U position)
        {
            var  alphaValue = (byte)(AlphaBlock[position.Y] >> (int)(position.X * 4) & 0b1111);
            uint alpha      = alphaValue * 0b10001u << 24;

            return(Color.GetColorDXT3(position) | alpha);
        }