Table of Contents

Class MapPointLight3

Namespace
WoWLib.Formats.WDT.Lights.Chunks
Assembly
WoWLib.dll

One Shadowlands point light (MPL3; replaces MPL2 in 9.0+ files).

public class MapPointLight3 : IDisposable
Inheritance
MapPointLight3
Implements
Inherited Members

Constructors

MapPointLight3()

public MapPointLight3()

MapPointLight3(uint, CImVector, C3Vector, float, float, float, C3Vector, ushort, ushort, short, short, ushort, ushort)

public MapPointLight3(uint id, CImVector color, C3Vector position, float attenuationStart, float attenuationEnd, float intensity, C3Vector rotation, ushort tileX, ushort tileY, short mltaIndex, short textureIndex, ushort flags, ushort scaleHalf)

Parameters

id uint
color CImVector
position C3Vector
attenuationStart float
attenuationEnd float
intensity float
rotation C3Vector
tileX ushort
tileY ushort
mltaIndex short
textureIndex short
flags ushort
scaleHalf ushort

MapPointLight3(MapPointLight3)

Copy-construct: a deep copy of other (the C++ copy constructor).

public MapPointLight3(MapPointLight3 other)

Parameters

other MapPointLight3

Properties

AttenuationEnd

How far the light spreads.

public float AttenuationEnd { get; set; }

Property Value

float

AttenuationStart

Where the light's spread starts.

public float AttenuationStart { get; set; }

Property Value

float

Color

Light color (b, g, r, a); alpha 0 means fully opaque.

public CImVector Color { get; set; }

Property Value

CImVector

Flags

Flags; 0x1 casts raytraced shadows (D3D12, shadow RT level 2+).

public ushort Flags { get; set; }

Property Value

ushort

Id

Unique light id within the WDT.

public uint Id { get; set; }

Property Value

uint

Intensity

Light intensity.

public float Intensity { get; set; }

Property Value

float

MltaIndex

Index into MLTA, or -1 when unanimated.

public short MltaIndex { get; set; }

Property Value

short

Position

Light position.

public C3Vector Position { get; set; }

Property Value

C3Vector

Rotation

Rotation; only used to orient light-cookie projection.

public C3Vector Rotation { get; set; }

Property Value

C3Vector

ScaleHalf

Scale as a raw IEEE half-float (0.5 is the default; 10.0 hides player shadows).

public ushort ScaleHalf { get; set; }

Property Value

ushort

TextureIndex

Index into MTEX for the light-cookie texture, or -1.

public short TextureIndex { get; set; }

Property Value

short

TileX

The ADT tile x coordinate.

public ushort TileX { get; set; }

Property Value

ushort

TileY

The ADT tile y coordinate.

public ushort TileY { get; set; }

Property Value

ushort

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