Class NewLight
One MNLD entry (9.0+): a Shadowlands dynamic light - point or spot - used for everything from torch fires to window-light projection.
public class NewLight : IDisposable
- Inheritance
-
NewLight
- Implements
- Inherited Members
Constructors
NewLight()
public NewLight()
NewLight(NewLight)
Copy-construct: a deep copy of other (the C++ copy constructor).
public NewLight(NewLight other)
Parameters
otherNewLight
Properties
AttenEnd
Attenuation end distance.
public float AttenEnd { get; set; }
Property Value
AttenStart
Attenuation start distance.
public float AttenStart { get; set; }
Property Value
BlendEnd
Gradient end distance for inner/outer blending (flag 0x1).
public float BlendEnd { get; set; }
Property Value
BlendStart
Gradient start distance for inner/outer blending (flag 0x1).
public float BlendStart { get; set; }
Property Value
DoodadSet
The doodad set this light belongs to.
public int DoodadSet { get; set; }
Property Value
Falloff
Falloff exponent for spot lights.
public float Falloff { get; set; }
Property Value
Flags
0x1: blend outer and inner color; 0x2: casts shadows.
public int Flags { get; set; }
Property Value
FlickerIntensity
Flickering intensity.
public float FlickerIntensity { get; set; }
Property Value
FlickerMode
0 = off, 1 = sine curve, 2 = noise curve, 3 = noise step.
public int FlickerMode { get; set; }
Property Value
FlickerSpeed
Flickering speed.
public float FlickerSpeed { get; set; }
Property Value
InnerAngle
Start of the spot drop-off gradient, in radians.
public float InnerAngle { get; set; }
Property Value
InnerColor
Inner color.
public CImVector InnerColor { get; set; }
Property Value
Intensity
Light intensity.
public float Intensity { get; set; }
Property Value
IntensityMultiplierHalf
Intensity multiplier, as raw IEEE half-float bits; 0 is corrected to 1 by the client.
public ushort IntensityMultiplierHalf { get; set; }
Property Value
LightCookieFdid
FileDataID of the light cookie texture (a cube map for point lights).
public uint LightCookieFdid { get; set; }
Property Value
LightIndex
Index of this light in the MNLD array.
public int LightIndex { get; set; }
Property Value
OuterAngle
End of the spot drop-off gradient, in radians.
public float OuterAngle { get; set; }
Property Value
OuterColor
Outer color; used with flag 0x1.
public CImVector OuterColor { get; set; }
Property Value
Position
Position in the WMO.
public C3Vector Position { get; set; }
Property Value
Rotation
Euler rotation in radians; rotates the light (spot) or its cookie (point).
public C3Vector Rotation { get; set; }
Property Value
ScaleHalf
Scale, as raw IEEE half-float bits; used with flag 0x2.
public ushort ScaleHalf { get; set; }
Property Value
Type
0 = point light (sphere), 1 = spot light (cone).
public int Type { get; set; }
Property Value
Unknown1
Unknown; only zeros observed.
public C3Vector Unknown1 { get; set; }
Property Value
Methods
Dispose()
Release the native object now. Optional: the finalizer releases it on
collection anyway - dispose (or using) when you want native memory back
promptly.
public virtual void Dispose()