Example #1
0
    public static Vector3 Directional2D(Vector2 pos, float frequency, float offset = 0)
    {
        Vector3 coord = new Vector2((pos.x + offset) * frequency, (pos.y + offset) * frequency + offset);

        return(Perlin.PointOnUnitCircle(coord));
    }