Browse Source

Merge pull request #268 from DoobesURU/AddBackExp2Fog

Add Back Exp2 Fog
pull/273/head
Adam Johnson 3 years ago committed by GitHub
parent
commit
9c6d862fff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      korman/exporter/manager.py
  2. 7
      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

7
korman/properties/prop_world.py

@ -30,9 +30,10 @@ class PlasmaFni(bpy.types.PropertyGroup):
subtype="COLOR")
fog_method = EnumProperty(name="Fog Type",
items=[
("linear", "Linear", "Linear Fog"),
("exp", "Exponential", "Exponential Fog"),
("none", "None", "Use fog from the previous age")
("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",
description="",

Loading…
Cancel
Save