Browse Source

Allow disabling of RT shadow casting per material.

pull/175/head
Adam Johnson 5 years ago
parent
commit
7311039bc0
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 2
      korman/exporter/mesh.py

2
korman/exporter/mesh.py

@ -231,6 +231,8 @@ class MeshConverter(_MeshManager):
geospan.props |= plGeometrySpan.kLiteVtxNonPreshaded geospan.props |= plGeometrySpan.kLiteVtxNonPreshaded
if mods.lighting.rt_lights: if mods.lighting.rt_lights:
geospan.props |= plGeometrySpan.kPropRunTimeLight geospan.props |= plGeometrySpan.kPropRunTimeLight
if not bm.use_shadows:
geospan.props |= plGeometrySpan.kPropNoShadow
# Harvest lights # Harvest lights
permaLights, permaProjs = self._exporter().light.find_material_light_keys(bo, bm) permaLights, permaProjs = self._exporter().light.find_material_light_keys(bo, bm)

Loading…
Cancel
Save