From 7311039bc0d8e075e45d9170179f489c4bf753a2 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 11 Feb 2020 15:33:30 -0500 Subject: [PATCH] Allow disabling of RT shadow casting per material. --- korman/exporter/mesh.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/korman/exporter/mesh.py b/korman/exporter/mesh.py index f6fdba2..4ef35ed 100644 --- a/korman/exporter/mesh.py +++ b/korman/exporter/mesh.py @@ -231,6 +231,8 @@ class MeshConverter(_MeshManager): geospan.props |= plGeometrySpan.kLiteVtxNonPreshaded if mods.lighting.rt_lights: geospan.props |= plGeometrySpan.kPropRunTimeLight + if not bm.use_shadows: + geospan.props |= plGeometrySpan.kPropNoShadow # Harvest lights permaLights, permaProjs = self._exporter().light.find_material_light_keys(bo, bm)