mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-30 15:41:30 +00:00
a9fd8d33b2
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).
36 lines
864 B
C#
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
|
|
}
|
|
}
|