From 8aaca6e4242a6db4d94d3add39545870a87f0539 Mon Sep 17 00:00:00 2001 From: Mark Eggert <72320499+TikiBear@users.noreply.github.com> Date: Mon, 26 Apr 2021 07:05:12 -0700 Subject: [PATCH 1/2] Update rtlight.py Enable shadow-only lamps. --- korman/exporter/rtlight.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/korman/exporter/rtlight.py b/korman/exporter/rtlight.py index 58d8897..13950df 100644 --- a/korman/exporter/rtlight.py +++ b/korman/exporter/rtlight.py @@ -138,14 +138,14 @@ class LightConverter: shadow_only = bl_light.shadow_method != "NOSHADOW" and bl_light.use_only_shadow # Apply the colors - if bl_light.use_diffuse and not shadow_only: + if bl_light.use_diffuse: # TikiBear self._report.msg("Diffuse: {}", diff_str, indent=2) pl_light.diffuse = hsColorRGBA(*diff_color) else: self._report.msg("Diffuse: OFF", indent=2) pl_light.diffuse = hsColorRGBA(0.0, 0.0, 0.0, energy) - if bl_light.use_specular and not shadow_only: + if bl_light.use_specular: # TikiBear self._report.msg("Specular: {}", spec_str, indent=2) pl_light.setProperty(plLightInfo.kLPHasSpecular, True) pl_light.specular = hsColorRGBA(*spec_color) From 32bd8bd75da45b3f44564d6ba08abe20c40ac118 Mon Sep 17 00:00:00 2001 From: Mark Eggert <72320499+TikiBear@users.noreply.github.com> Date: Mon, 3 May 2021 21:59:42 -0700 Subject: [PATCH 2/2] Enable Shadow-Only Lamps Remove bad clause in Shadow-Only lamp logic. --- korman/exporter/rtlight.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/korman/exporter/rtlight.py b/korman/exporter/rtlight.py index 13950df..3a30014 100644 --- a/korman/exporter/rtlight.py +++ b/korman/exporter/rtlight.py @@ -138,14 +138,14 @@ class LightConverter: shadow_only = bl_light.shadow_method != "NOSHADOW" and bl_light.use_only_shadow # Apply the colors - if bl_light.use_diffuse: # TikiBear + if bl_light.use_diffuse: self._report.msg("Diffuse: {}", diff_str, indent=2) pl_light.diffuse = hsColorRGBA(*diff_color) else: self._report.msg("Diffuse: OFF", indent=2) pl_light.diffuse = hsColorRGBA(0.0, 0.0, 0.0, energy) - if bl_light.use_specular: # TikiBear + if bl_light.use_specular: self._report.msg("Specular: {}", spec_str, indent=2) pl_light.setProperty(plLightInfo.kLPHasSpecular, True) pl_light.specular = hsColorRGBA(*spec_color)