From 069818e7bd2db1426d2c09b954e8bd608e1353d3 Mon Sep 17 00:00:00 2001 From: Patrick Dulebohn Date: Tue, 3 Aug 2021 14:19:56 -0400 Subject: [PATCH 1/2] Add Back Exp2 Fog Reintroduces the Exp2 Fog option and also updates the "none" fog function description. --- korman/exporter/manager.py | 2 ++ korman/properties/prop_world.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/korman/exporter/manager.py b/korman/exporter/manager.py index ad6b7da..e5cc8e2 100644 --- a/korman/exporter/manager.py +++ b/korman/exporter/manager.py @@ -331,6 +331,8 @@ class ExportManager: stream.writeLine("Graphics.Renderer.Fog.SetDefLinear {:.2f} {:.2f} {:.2f}".format(fni.fog_start, fni.fog_end, fni.fog_density)) elif fni.fog_method == "exp": stream.writeLine("Graphics.Renderer.Fog.SetDefExp {:.2f} {:.2f}".format(fni.fog_end, fni.fog_density)) + elif fni.fog_method == "exp2": + stream.writeLine("Graphics.Renderer.Fog.SetDefExp2 {:.2f} {:.2f}".format(fni.fog_end, fni.fog_density)) def _write_pages(self): age_name = self._age_info.name diff --git a/korman/properties/prop_world.py b/korman/properties/prop_world.py index 5e223af..a8c6782 100644 --- a/korman/properties/prop_world.py +++ b/korman/properties/prop_world.py @@ -32,7 +32,8 @@ class PlasmaFni(bpy.types.PropertyGroup): items=[ ("linear", "Linear", "Linear Fog"), ("exp", "Exponential", "Exponential Fog"), - ("none", "None", "Use fog from the previous age") + ("exp2", "Exponential 2", "Exponential Fog 2"), + ("none", "None", "No Fog") ]) fog_start = FloatProperty(name="Start", description="", From b46188b22e2f3f0bc679187f658c8c6812011153 Mon Sep 17 00:00:00 2001 From: Patrick Dulebohn Date: Thu, 5 Aug 2021 09:04:03 -0400 Subject: [PATCH 2/2] Update Fog Type Descriptions --- korman/properties/prop_world.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/korman/properties/prop_world.py b/korman/properties/prop_world.py index a8c6782..75191b2 100644 --- a/korman/properties/prop_world.py +++ b/korman/properties/prop_world.py @@ -30,9 +30,9 @@ class PlasmaFni(bpy.types.PropertyGroup): subtype="COLOR") fog_method = EnumProperty(name="Fog Type", items=[ - ("linear", "Linear", "Linear Fog"), - ("exp", "Exponential", "Exponential Fog"), - ("exp2", "Exponential 2", "Exponential Fog 2"), + ("linear", "Linear", "Fog Based on Linear Distance"), + ("exp", "Exponential", "Fog Based on Exponential Distance"), + ("exp2", "Exponential 2", "Fog Based on Exponential Distance Squared"), ("none", "None", "No Fog") ]) fog_start = FloatProperty(name="Start",