Table of Contents

Class NewLight

Namespace
WoWLib.Formats.WMO.Root.Chunks
Assembly
WoWLib.dll

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

other NewLight

Properties

AttenEnd

Attenuation end distance.

public float AttenEnd { get; set; }

Property Value

float

AttenStart

Attenuation start distance.

public float AttenStart { get; set; }

Property Value

float

BlendEnd

Gradient end distance for inner/outer blending (flag 0x1).

public float BlendEnd { get; set; }

Property Value

float

BlendStart

Gradient start distance for inner/outer blending (flag 0x1).

public float BlendStart { get; set; }

Property Value

float

DoodadSet

The doodad set this light belongs to.

public int DoodadSet { get; set; }

Property Value

int

Falloff

Falloff exponent for spot lights.

public float Falloff { get; set; }

Property Value

float

Flags

0x1: blend outer and inner color; 0x2: casts shadows.

public int Flags { get; set; }

Property Value

int

FlickerIntensity

Flickering intensity.

public float FlickerIntensity { get; set; }

Property Value

float

FlickerMode

0 = off, 1 = sine curve, 2 = noise curve, 3 = noise step.

public int FlickerMode { get; set; }

Property Value

int

FlickerSpeed

Flickering speed.

public float FlickerSpeed { get; set; }

Property Value

float

InnerAngle

Start of the spot drop-off gradient, in radians.

public float InnerAngle { get; set; }

Property Value

float

InnerColor

Inner color.

public CImVector InnerColor { get; set; }

Property Value

CImVector

Intensity

Light intensity.

public float Intensity { get; set; }

Property Value

float

IntensityMultiplierHalf

Intensity multiplier, as raw IEEE half-float bits; 0 is corrected to 1 by the client.

public ushort IntensityMultiplierHalf { get; set; }

Property Value

ushort

LightCookieFdid

FileDataID of the light cookie texture (a cube map for point lights).

public uint LightCookieFdid { get; set; }

Property Value

uint

LightIndex

Index of this light in the MNLD array.

public int LightIndex { get; set; }

Property Value

int

OuterAngle

End of the spot drop-off gradient, in radians.

public float OuterAngle { get; set; }

Property Value

float

OuterColor

Outer color; used with flag 0x1.

public CImVector OuterColor { get; set; }

Property Value

CImVector

Position

Position in the WMO.

public C3Vector Position { get; set; }

Property Value

C3Vector

Rotation

Euler rotation in radians; rotates the light (spot) or its cookie (point).

public C3Vector Rotation { get; set; }

Property Value

C3Vector

ScaleHalf

Scale, as raw IEEE half-float bits; used with flag 0x2.

public ushort ScaleHalf { get; set; }

Property Value

ushort

Type

0 = point light (sphere), 1 = spot light (cone).

public int Type { get; set; }

Property Value

int

Unknown1

Unknown; only zeros observed.

public C3Vector Unknown1 { get; set; }

Property Value

C3Vector

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()