2013-04-11 11:04:16 +00:00
|
|
|
|
using SlimDX;
|
2012-04-17 19:13:47 +00:00
|
|
|
|
|
|
|
|
|
namespace CodeImp.DoomBuilder.GZBuilder.Data
|
|
|
|
|
{
|
2014-12-03 23:15:26 +00:00
|
|
|
|
public sealed class DynamicLightData
|
|
|
|
|
{
|
2013-07-29 08:50:50 +00:00
|
|
|
|
public DynamicLightType Type; //holds DynamicLightType
|
2013-09-11 09:47:53 +00:00
|
|
|
|
public Color3 Color;
|
|
|
|
|
public int PrimaryRadius;
|
|
|
|
|
public int SecondaryRadius;
|
|
|
|
|
public int Interval;
|
|
|
|
|
public Vector3 Offset;
|
|
|
|
|
public bool Subtractive;
|
|
|
|
|
public bool DontLightSelf;
|
2012-06-01 10:17:47 +00:00
|
|
|
|
|
2014-12-03 23:15:26 +00:00
|
|
|
|
public DynamicLightData()
|
|
|
|
|
{
|
2013-09-11 09:47:53 +00:00
|
|
|
|
Color = new Color3();
|
|
|
|
|
Offset = new Vector3();
|
|
|
|
|
}
|
|
|
|
|
}
|
2012-04-17 19:13:47 +00:00
|
|
|
|
|
2013-09-11 09:47:53 +00:00
|
|
|
|
public enum DynamicLightType
|
|
|
|
|
{
|
|
|
|
|
NONE = -1,
|
2013-07-29 08:50:50 +00:00
|
|
|
|
NORMAL = 0,
|
2013-09-11 09:47:53 +00:00
|
|
|
|
PULSE = 1,
|
|
|
|
|
FLICKER = 2,
|
|
|
|
|
SECTOR = 3,
|
|
|
|
|
RANDOM = 4,
|
|
|
|
|
VAVOOM = 1502,
|
|
|
|
|
VAVOOM_COLORED = 1503,
|
|
|
|
|
}
|
2012-04-17 19:13:47 +00:00
|
|
|
|
|
2013-09-11 09:47:53 +00:00
|
|
|
|
//divide these by 100 to get light color alpha
|
|
|
|
|
public enum DynamicLightRenderStyle
|
|
|
|
|
{
|
|
|
|
|
NONE = 0,
|
|
|
|
|
NORMAL = 99,
|
|
|
|
|
VAVOOM = 50,
|
|
|
|
|
ADDITIVE = 25,
|
|
|
|
|
NEGATIVE = 100,
|
|
|
|
|
}
|
2012-04-17 19:13:47 +00:00
|
|
|
|
}
|