47 lines
831 B
C#
47 lines
831 B
C#
using System.Numerics;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Auspex.Lighting.Internal;
|
|
|
|
[StructLayout(LayoutKind.Explicit, Size = 160)]
|
|
internal struct LightRenderData
|
|
{
|
|
[FieldOffset(24)]
|
|
public AxLightFlags Flags;
|
|
|
|
[FieldOffset(28)]
|
|
public AxLightType EmissionType;
|
|
|
|
[FieldOffset(32)]
|
|
public unsafe LightTransform* Transform;
|
|
|
|
[FieldOffset(40)]
|
|
public Vector3 Color;
|
|
|
|
[FieldOffset(52)]
|
|
public float Intensity;
|
|
|
|
[FieldOffset(96)]
|
|
public float ShadowPlaneNear;
|
|
|
|
[FieldOffset(100)]
|
|
public float ShadowPlaneFar;
|
|
|
|
[FieldOffset(104)]
|
|
public AxFalloffType FalloffType;
|
|
|
|
[FieldOffset(128)]
|
|
public float Falloff;
|
|
|
|
[FieldOffset(132)]
|
|
public float LightAngle;
|
|
|
|
[FieldOffset(136)]
|
|
public float FalloffAngle;
|
|
|
|
[FieldOffset(140)]
|
|
public float Range;
|
|
|
|
[FieldOffset(144)]
|
|
public float CharacterShadowRange;
|
|
}
|