From 86616eb1c0ff1afbc507dbfab46921bb982523ad Mon Sep 17 00:00:00 2001 From: JonnyOThan Date: Mon, 15 Jul 2024 11:36:57 -0400 Subject: [PATCH] rename AntiAliasing -> Antialiasing --- Source/GUI/ConfigurationGUI.cs | 4 ++-- Source/TUFXProfile.cs | 14 +++++++------- Source/TexturesUnlimitedFXLoader.cs | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/GUI/ConfigurationGUI.cs b/Source/GUI/ConfigurationGUI.cs index 9b7aeb6..be2a424 100644 --- a/Source/GUI/ConfigurationGUI.cs +++ b/Source/GUI/ConfigurationGUI.cs @@ -289,7 +289,7 @@ private void renderGeneralSettings(TUFXProfile profile) if (DrawGroupHeader("General Settings")) { bool hdrChanged = renderHDRSettings(profile); - bool primaryChanged = renderAntialiasingSettings("Primary Camera Antialiasing", ref profile.AntiAliasing); + bool primaryChanged = renderAntialiasingSettings("Primary Camera Antialiasing", ref profile.Antialiasing); bool secondaryChanged = renderAntialiasingSettings("Secondary Camera Antialiasing", ref profile.SecondaryCameraAntialiasing); if (hdrChanged || primaryChanged || secondaryChanged) @@ -318,7 +318,7 @@ private bool renderHDRSettings(TUFXProfile profile) return changed; } - private bool renderAntialiasingSettings(string label, ref AntiAliasingParameters parameters) + private bool renderAntialiasingSettings(string label, ref AntialiasingParameters parameters) { GUILayout.BeginVertical(HighLogic.Skin.box); bool needRefresh = false; diff --git a/Source/TUFXProfile.cs b/Source/TUFXProfile.cs index 255a01f..d6098ec 100644 --- a/Source/TUFXProfile.cs +++ b/Source/TUFXProfile.cs @@ -82,7 +82,7 @@ public static BuiltinEffect GetBuiltinEffect(PostProcessEffectSettings settings) } - public struct AntiAliasingParameters + public struct AntialiasingParameters { public void Init() { @@ -105,9 +105,9 @@ public class TUFXProfile public bool HDREnabled; - public AntiAliasingParameters AntiAliasing; + public AntialiasingParameters Antialiasing; - public AntiAliasingParameters SecondaryCameraAntialiasing; + public AntialiasingParameters SecondaryCameraAntialiasing; private UrlDir.UrlConfig urlConfig; @@ -134,7 +134,7 @@ ConfigNode SaveToNode() node.SetValue("name", ProfileName, true); node.SetValue("hdr", HDREnabled, true); - node.WriteObject(nameof(AntiAliasing), AntiAliasing); + node.WriteObject(nameof(Antialiasing), Antialiasing); node.WriteObject(nameof(SecondaryCameraAntialiasing), SecondaryCameraAntialiasing); int len = Settings.Count; @@ -182,13 +182,13 @@ void LoadProfile(ConfigNode node) ProfileName = node.GetStringValue("name"); HDREnabled = node.GetBoolValue("hdr", false); - AntiAliasing.Init(); + Antialiasing.Init(); SecondaryCameraAntialiasing.Init(); // support loading legacy profiles - AntiAliasing.Mode = node.GetEnumValue("antialiasing", PostProcessLayer.Antialiasing.None); + Antialiasing.Mode = node.GetEnumValue("antialiasing", PostProcessLayer.Antialiasing.None); - node.ReadObject(nameof(AntiAliasing), ref AntiAliasing); + node.ReadObject(nameof(Antialiasing), ref Antialiasing); node.ReadObject(nameof(SecondaryCameraAntialiasing), ref SecondaryCameraAntialiasing); Settings.Clear(); diff --git a/Source/TexturesUnlimitedFXLoader.cs b/Source/TexturesUnlimitedFXLoader.cs index b04d819..8741f86 100644 --- a/Source/TexturesUnlimitedFXLoader.cs +++ b/Source/TexturesUnlimitedFXLoader.cs @@ -538,7 +538,7 @@ private void ApplyProfileToCamera(Camera camera, TUFXProfile tufxProfile, bool i // motion vectors aren't shared between cameras, and applying TAA on multiple cameras will produce smearing layer.volumeLayer = isFinalCamera ? 1 : 0; - AntiAliasingParameters aaParameters = isPrimaryCamera ? tufxProfile.AntiAliasing : tufxProfile.SecondaryCameraAntialiasing; + AntialiasingParameters aaParameters = isPrimaryCamera ? tufxProfile.Antialiasing : tufxProfile.SecondaryCameraAntialiasing; layer.antialiasingMode = aaParameters.Mode; layer.temporalAntialiasing = aaParameters.TemporalAntialiasing;