mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-02 01:57:07 +02:00
* 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
29 lines
482 B
C#
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;
|
|
}
|