Exemplo n.º 1
0
    public void SetMinFilter(float val)
    {
        MinFilter = Mathf.Clamp(val, -0.505f, 0.505f);
        OnFiltered.Invoke(MinFilter, MaxFilter);

        SetLocalYPosition(minFilterObject.transform, UtilMath.normaliseValue(MinFilter, -0.505f, 0.505f, -0.45f, 0.45f));
    }
Exemplo n.º 2
0
    // Update is called once per frame
    void Update()
    {
        var tex = textureHolder.GetTexture();

        if (tex == null)
        {
            return;
        }

        imageFilterGroup.Filter(tex);
        FilterEvent?.Invoke(imageFilterGroup.GetRenderTexture());
    }
Exemplo n.º 3
0
 public void SetMinFilter(float val)
 {
     MinFilter = val;
     OnFiltered.Invoke(MinFilter, MaxFilter);
 }