Browse Source

Add Back Exp2 Fog

Reintroduces the Exp2 Fog option and also updates the "none" fog function description.
pull/268/head
Patrick Dulebohn 3 years ago
parent
commit
069818e7bd
  1. 2
      korman/exporter/manager.py
  2. 3
      korman/properties/prop_world.py

2
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

3
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="",

Loading…
Cancel
Save