Example #1
0
    void Brush(Vector2 p1, Vector2 p2)
    {
        if (p2 == Vector2.zero)
        {
            p2 = p1;
        }

        PaintTexture.Paint(p1, p2, brushRadius, brushColor, brushHadness, imageTexture, false);
        imageTexture.Apply();
    }
Example #2
0
    void Brush(Vector2 p1, Vector2 p2)
    {
        if (wasEntered)
        {
            Debug.Log("BRUSH");
        }

        if (p2 == Vector2.zero)
        {
            p2 = p1;
        }

        PaintTexture.Paint(p1, p2, brushRadius, brushColor, brushHadness, imageTexture);
        imageTexture.Apply();
    }