Browse Source

Dynamic envmap: use -1 fog to let the engine use default fog settings.

pull/318/head
Jrius 3 years ago
parent
commit
f7d06016b1
  1. 3
      korman/exporter/material.py

3
korman/exporter/material.py

@ -742,9 +742,8 @@ class MaterialConverter:
pl_env.incCharacters = texture.plasma_layer.envmap_addavatar pl_env.incCharacters = texture.plasma_layer.envmap_addavatar
# Perhaps the DEM/DCM fog should be separately configurable at some point? # Perhaps the DEM/DCM fog should be separately configurable at some point?
pl_fog = bpy.context.scene.world.plasma_fni
pl_env.color = utils.color(texture.plasma_layer.envmap_color) pl_env.color = utils.color(texture.plasma_layer.envmap_color)
pl_env.fogStart = pl_fog.fog_start pl_env.fogStart = -1.0
# EffVisSets # EffVisSets
# Whoever wrote this PyHSPlasma binding didn't follow the convention. Sigh. # Whoever wrote this PyHSPlasma binding didn't follow the convention. Sigh.

Loading…
Cancel
Save