Class MapPointLight3
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
iduintcolorCImVectorpositionC3VectorattenuationStartfloatattenuationEndfloatintensityfloatrotationC3VectortileXushorttileYushortmltaIndexshorttextureIndexshortflagsushortscaleHalfushort
MapPointLight3(MapPointLight3)
Copy-construct: a deep copy of other (the C++ copy constructor).
public MapPointLight3(MapPointLight3 other)
Parameters
otherMapPointLight3
Properties
AttenuationEnd
How far the light spreads.
public float AttenuationEnd { get; set; }
Property Value
AttenuationStart
Where the light's spread starts.
public float AttenuationStart { get; set; }
Property Value
Color
Light color (b, g, r, a); alpha 0 means fully opaque.
public CImVector Color { get; set; }
Property Value
Flags
Flags; 0x1 casts raytraced shadows (D3D12, shadow RT level 2+).
public ushort Flags { get; set; }
Property Value
Id
Unique light id within the WDT.
public uint Id { get; set; }
Property Value
Intensity
Light intensity.
public float Intensity { get; set; }
Property Value
MltaIndex
Index into MLTA, or -1 when unanimated.
public short MltaIndex { get; set; }
Property Value
Position
Light position.
public C3Vector Position { get; set; }
Property Value
Rotation
Rotation; only used to orient light-cookie projection.
public C3Vector Rotation { get; set; }
Property Value
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
TextureIndex
Index into MTEX for the light-cookie texture, or -1.
public short TextureIndex { get; set; }
Property Value
TileX
The ADT tile x coordinate.
public ushort TileX { get; set; }
Property Value
TileY
The ADT tile y coordinate.
public ushort TileY { 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()