|
|
@ -153,28 +153,26 @@ def lighting(modifier, layout, context): |
|
|
|
|
|
|
|
|
|
|
|
lightmap = modifier.id_data.plasma_modifiers.lightmap |
|
|
|
lightmap = modifier.id_data.plasma_modifiers.lightmap |
|
|
|
have_static_lights = lightmap.enabled or modifier.preshade |
|
|
|
have_static_lights = lightmap.enabled or modifier.preshade |
|
|
|
def yes_no(val): |
|
|
|
|
|
|
|
return "Yes" if val else "No" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
col = layout.column(align=True) |
|
|
|
col = layout.column(align=True) |
|
|
|
col.label("Plasma Lighting Summary:") |
|
|
|
col.label("Plasma Lighting Summary:") |
|
|
|
if modifier.rt_lights and have_static_lights: |
|
|
|
if modifier.unleashed: |
|
|
|
col.label(" You have unleashed Satan!", icon="GHOST_ENABLED") |
|
|
|
col.label("You have unleashed Satan!", icon="GHOST_ENABLED") |
|
|
|
else: |
|
|
|
else: |
|
|
|
col.label(" Satan remains ensconced deep in the abyss...", icon="GHOST_ENABLED") |
|
|
|
col.label("Satan remains ensconced deep in the abyss...", icon="GHOST_ENABLED") |
|
|
|
col.label("Animated lights will be cast at runtime.", icon="LAYER_USED") |
|
|
|
col.label("Animated lights will be cast at runtime.", icon="LAYER_USED") |
|
|
|
col.label("Projection lights will be cast at runtime.", icon="LAYER_USED") |
|
|
|
col.label("Projection lights will be cast at runtime.", icon="LAYER_USED") |
|
|
|
col.label("Specular lights will be cast to specular materials at runtime.", icon="LAYER_USED") |
|
|
|
col.label("Specular lights will be cast to specular materials at runtime.", icon="LAYER_USED") |
|
|
|
col.label("Other Plasma lights {} be cast at runtime.".format("will" if modifier.rt_lights else "will NOT"), |
|
|
|
col.label("Other Plasma lights {} be cast at runtime.".format("will" if modifier.rt_lights else "will NOT"), |
|
|
|
icon="LAYER_USED") |
|
|
|
icon="LAYER_USED") |
|
|
|
|
|
|
|
|
|
|
|
map_type = "a lightmap" if lightmap.enabled and lightmap.bake_type == "lightmap" else "vertex colors" |
|
|
|
map_type = "a lightmap" if lightmap.bake_lightmap else "vertex colors" |
|
|
|
if lightmap.enabled and lightmap.lights: |
|
|
|
if lightmap.enabled and lightmap.lights: |
|
|
|
col.label("All '{}' lights will be baked to {}".format(lightmap.lights.name, map_type), |
|
|
|
col.label("All '{}' lights will be baked to {}".format(lightmap.lights.name, map_type), |
|
|
|
icon="LAYER_USED") |
|
|
|
icon="LAYER_USED") |
|
|
|
elif have_static_lights: |
|
|
|
elif have_static_lights: |
|
|
|
light_type = "Blender-only" if modifier.rt_lights else "unanimated" |
|
|
|
light_type = "Blender-only" if modifier.rt_lights else "unanimated" |
|
|
|
col.label("Other {} lights will be baked to {}.".format(light_type, map_type), icon="LAYER_USED") |
|
|
|
col.label("Other {} lights will be baked to {} (if applicable).".format(light_type, map_type), icon="LAYER_USED") |
|
|
|
else: |
|
|
|
else: |
|
|
|
col.label("No static lights will be baked.", icon="LAYER_USED") |
|
|
|
col.label("No static lights will be baked.", icon="LAYER_USED") |
|
|
|
|
|
|
|
|
|
|
|