Disable shadow casting for bioluminescent plants (#11986)
This commit is contained in:
@@ -588,6 +588,8 @@ namespace Content.Server.Botany.Components
|
|||||||
var light = _entMan.EnsureComponent<PointLightComponent>(Owner);
|
var light = _entMan.EnsureComponent<PointLightComponent>(Owner);
|
||||||
light.Radius = Seed.BioluminescentRadius;
|
light.Radius = Seed.BioluminescentRadius;
|
||||||
light.Color = Seed.BioluminescentColor;
|
light.Color = Seed.BioluminescentColor;
|
||||||
|
light.CastShadows = false; // this is expensive, and botanists make lots of plants
|
||||||
|
light.Dirty();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -167,6 +167,8 @@ public sealed partial class BotanySystem
|
|||||||
var light = EnsureComp<PointLightComponent>(entity);
|
var light = EnsureComp<PointLightComponent>(entity);
|
||||||
light.Radius = proto.BioluminescentRadius;
|
light.Radius = proto.BioluminescentRadius;
|
||||||
light.Color = proto.BioluminescentColor;
|
light.Color = proto.BioluminescentColor;
|
||||||
|
light.CastShadows = false; // this is expensive, and botanists make lots of plants
|
||||||
|
light.Dirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (proto.Slip)
|
if (proto.Slip)
|
||||||
|
|||||||
Reference in New Issue
Block a user