Exemplo n.º 1
0
    public void SetValue(int textureIndex, PerTexVector2 channel, Vector2 value)
    {
        float e = ((float)channel) / 4.0f;
        int   x = (int)e;
        int   y = (int)((e * 4) - x);

        SetValue(x, textureIndex, y, value);
    }
Exemplo n.º 2
0
    public void SetValue(int textureIndex, PerTexVector2 channel, Vector2 value)
    {
        float e = ((float)channel) / 4.0f;
        int   x = (int)e;
        int   y = Mathf.RoundToInt((e - x) * 4);

        SetValue(textureIndex, x, y, value);
    }