From f7d06016b1d1acbfc81a936b34205aeb0dc717b1 Mon Sep 17 00:00:00 2001 From: Jrius <2261279+Jrius@users.noreply.github.com> Date: Sun, 27 Feb 2022 12:37:06 +0100 Subject: [PATCH] Dynamic envmap: use -1 fog to let the engine use default fog settings. --- korman/exporter/material.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index a29f9d8..212dcf0 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -742,9 +742,8 @@ class MaterialConverter: pl_env.incCharacters = texture.plasma_layer.envmap_addavatar # 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.fogStart = pl_fog.fog_start + pl_env.fogStart = -1.0 # EffVisSets # Whoever wrote this PyHSPlasma binding didn't follow the convention. Sigh.