Beispiel #1
0
        public Vector4 GetDecodedHeightMapSample(Vector2 uv)
        {
            Vector4 c             = HeightMap.GetPixelBilinear(uv.x, uv.y);
            Vector2 encodedHeight = new Vector2(c.x, c.y);
            float   decodedHeight = GCommon.DecodeTerrainHeight(encodedHeight);

            c.x = decodedHeight;
            c.y = decodedHeight;
            return(c);
        }