public static Settings Lerp(Settings s1, Settings s2, float t) { Settings settings = new Settings(); settings.bloom = BloomSettings.Lerp(s1.bloom, s2.bloom, t); settings.lensDirt = LensDirtSettings.Lerp(s1.lensDirt, s2.lensDirt, t); return(settings); }
public static LensDirtSettings Lerp(LensDirtSettings s1, LensDirtSettings s2, float t) { LensDirtSettings settings = new LensDirtSettings(); settings.intensity = Mathf.Lerp(s1.intensity, s2.intensity, t); settings.texture = s1.texture; return(settings); }
public override void OnEnable() { m_Bloom = new BloomSettings { intensity = FindSetting((Settings x) => x.bloom.intensity), threshold = FindSetting((Settings x) => x.bloom.threshold), softKnee = FindSetting((Settings x) => x.bloom.softKnee), radius = FindSetting((Settings x) => x.bloom.radius), antiFlicker = FindSetting((Settings x) => x.bloom.antiFlicker) }; m_LensDirt = new LensDirtSettings { texture = FindSetting((Settings x) => x.lensDirt.texture), intensity = FindSetting((Settings x) => x.lensDirt.intensity) }; }
public override void OnEnable() { m_Bloom = new BloomSettings { intensity = FindSetting((Settings x) => x.bloom.intensity), threshold = FindSetting((Settings x) => x.bloom.threshold), softKnee = FindSetting((Settings x) => x.bloom.softKnee), radius = FindSetting((Settings x) => x.bloom.radius), antiFlicker = FindSetting((Settings x) => x.bloom.antiFlicker) }; m_LensDirt = new LensDirtSettings { texture = FindSetting((Settings x) => x.lensDirt.texture), intensity = FindSetting((Settings x) => x.lensDirt.intensity) }; }