Browse Source

Enable Shadow-Only Lamps

Remove bad clause in Shadow-Only lamp logic.
pull/247/head
Mark Eggert 4 years ago committed by GitHub
parent
commit
32bd8bd75d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      korman/exporter/rtlight.py

4
korman/exporter/rtlight.py

@ -138,14 +138,14 @@ class LightConverter:
shadow_only = bl_light.shadow_method != "NOSHADOW" and bl_light.use_only_shadow shadow_only = bl_light.shadow_method != "NOSHADOW" and bl_light.use_only_shadow
# Apply the colors # Apply the colors
if bl_light.use_diffuse: # TikiBear if bl_light.use_diffuse:
self._report.msg("Diffuse: {}", diff_str, indent=2) self._report.msg("Diffuse: {}", diff_str, indent=2)
pl_light.diffuse = hsColorRGBA(*diff_color) pl_light.diffuse = hsColorRGBA(*diff_color)
else: else:
self._report.msg("Diffuse: OFF", indent=2) self._report.msg("Diffuse: OFF", indent=2)
pl_light.diffuse = hsColorRGBA(0.0, 0.0, 0.0, energy) 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) self._report.msg("Specular: {}", spec_str, indent=2)
pl_light.setProperty(plLightInfo.kLPHasSpecular, True) pl_light.setProperty(plLightInfo.kLPHasSpecular, True)
pl_light.specular = hsColorRGBA(*spec_color) pl_light.specular = hsColorRGBA(*spec_color)

Loading…
Cancel
Save