public override void OnEnable() { m_Intensity = new IntensitySettings { reflectionMultiplier = FindSetting((Settings x) => x.intensity.reflectionMultiplier), fadeDistance = FindSetting((Settings x) => x.intensity.fadeDistance), fresnelFade = FindSetting((Settings x) => x.intensity.fresnelFade), fresnelFadePower = FindSetting((Settings x) => x.intensity.fresnelFadePower) }; m_Reflection = new ReflectionSettings { blendType = FindSetting((Settings x) => x.reflection.blendType), reflectionQuality = FindSetting((Settings x) => x.reflection.reflectionQuality), maxDistance = FindSetting((Settings x) => x.reflection.maxDistance), iterationCount = FindSetting((Settings x) => x.reflection.iterationCount), stepSize = FindSetting((Settings x) => x.reflection.stepSize), widthModifier = FindSetting((Settings x) => x.reflection.widthModifier), reflectionBlur = FindSetting((Settings x) => x.reflection.reflectionBlur), reflectBackfaces = FindSetting((Settings x) => x.reflection.reflectBackfaces) }; m_ScreenEdgeMask = new ScreenEdgeMask { intensity = FindSetting((Settings x) => x.screenEdgeMask.intensity) }; }
public void Persist(ILogger logger) { if (!_reflectionSettings.IsValueCreated) { return; } ReflectionSettings.ForEach(vm => vm.Persist(logger)); }