2025-09-26 10:57:15 -04:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.BSP
|
2025-09-26 10:57:15 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The lighting data for each sample is represented by an array
|
|
|
|
|
/// of 6 ColorRGBExp32
|
|
|
|
|
/// </summary>
|
2025-10-30 21:21:56 -04:00
|
|
|
/// <see href="https://developer.valvesoftware.com/wiki/BSP_(Source)"/>
|
2025-09-26 10:57:15 -04:00
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public class CompressedLightCube
|
|
|
|
|
{
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)]
|
2025-10-31 13:59:28 -04:00
|
|
|
public ColorRGBExp32[] Colors = new ColorRGBExp32[6];
|
2025-09-26 10:57:15 -04:00
|
|
|
}
|
2025-10-30 21:21:56 -04:00
|
|
|
}
|