/// <summary> /// Loads the profile from the input configuration node. /// </summary> /// <param name="node"></param> public void LoadProfile(ConfigNode node) { ProfileName = node.GetStringValue("name"); HDREnabled = node.GetBoolValue("hdr", false); AntiAliasing = node.GetEnumValue("antialiasing", PostProcessLayer.Antialiasing.None); Settings.Clear(); ConfigNode[] effectNodes = node.GetNodes("EFFECT"); int len = effectNodes.Length; for (int i = 0; i < len; i++) { BuiltinEffect effect = effectNodes[i].GetEnumValue("name", BuiltinEffect.AmbientOcclusion); PostProcessEffectSettings set = TUFXProfileManager.CreateEmptySettingsForEffect(effect); set.enabled.Override(true); set.Load(effectNodes[i]); Settings.Add(set); } }