Disable shadow casting for bioluminescent plants (#11986)

This commit is contained in:
Kevin Zheng
2022-10-22 15:40:57 -07:00
committed by GitHub
parent 1a1e72063a
commit b798924f12
2 changed files with 4 additions and 0 deletions

View File

@@ -167,6 +167,8 @@ public sealed partial class BotanySystem
var light = EnsureComp<PointLightComponent>(entity);
light.Radius = proto.BioluminescentRadius;
light.Color = proto.BioluminescentColor;
light.CastShadows = false; // this is expensive, and botanists make lots of plants
light.Dirty();
}
if (proto.Slip)