UltimateZoneBuilder/Source/Core/GZBuilder/Data/GZDoomLight.cs
MaxED a9fd8d33b2 GZDoomBuilder 1.04:
Added "Dynamic light size" slider, which matches GZDoom's "Light size" option.
Added "Dynamic light intensity" slider, which matches GZDoom's "Light intensity" option.
Fixed Vavoom light rendering (was rendered as additive light, light radius was twise smaller than in GZDoom)
Fixed bug in light rendering introduced in v1.03 (light radius was set to -1 when switching from 2D to 3D mode).
2012-04-25 11:44:36 +00:00

36 lines
864 B
C#

//using SlimDX;
namespace CodeImp.DoomBuilder.GZBuilder.Data
{
/*public struct GZDoomLight
{
public Color3 Color;
public Vector4 PosAndRadius;
public int MinRadius;
public int MaxRadius;
public int Type; //listed in GZDoomLightType
public int RenderStyle; //normal, additive, negative
public int CameraDistance;
public float AnimationSpeed;
}*/
public enum GZDoomLightType : int
{
NORMAL = 0,
PULSE = 1,
FLICKER = 2,
SECTOR = 3,
RANDOM = 4,
VAVOOM = 1502,
VAVOOM_COLORED = 1503
}
//divide these by 100 to get light color alpha
public enum GZDoomLightRenderStyle : int
{
NORMAL = 99,
VAVOOM = 50,
ADDITIVE = 25,
NEGATIVE = 100
}
}