public Vector4 GetDecodedHeightMapSample(Vector2 uv) { Vector4 c = HeightMap.GetPixelBilinear(uv.x, uv.y); Vector2 encodedHeight = new Vector2(c.x, c.y); float decodedHeight = GCommon.DecodeFloatRG(encodedHeight); c.x = decodedHeight; c.y = decodedHeight; return(c); }