Files
RobustToolbox/Robust.Shared/GameObjects/Components/Light/PointLightComponentState.cs
T
KaraandGitHub 94e60e0b10 More accurate & controllable pointlight attenuation (#6160)
* modify light attenuation function

* support for changing attenuation curve type + lots of docs

* this is what i defaulted to typing in a prototype, so i guess it should just be this instead

* Allow a continuous range of values between inverse and inversequadratic rather than two set curves

* calc is slang for calculator

* fix

* oops committed it at 1 while testing i think, values are balanced for 0
2025-09-18 16:58:35 +02:00

29 lines
482 B
C#

using System;
using System.Numerics;
using Robust.Shared.Maths;
using Robust.Shared.Serialization;
namespace Robust.Shared.GameObjects;
[Serializable, NetSerializable]
public sealed class PointLightComponentState : ComponentState
{
public Color Color;
public float Energy;
public float Softness;
public float Falloff;
public float CurveFactor;
public bool CastShadows;
public bool Enabled;
public float Radius;
public Vector2 Offset;
}