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)); }
// Update is called once per frame void Update() { var tex = textureHolder.GetTexture(); if (tex == null) { return; } imageFilterGroup.Filter(tex); FilterEvent?.Invoke(imageFilterGroup.GetRenderTexture()); }
public void SetMinFilter(float val) { MinFilter = val; OnFiltered.Invoke(MinFilter, MaxFilter); }