Table of Contents

Class SmoLight

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

One MOLT light. Not rendered by classic-era clients, but baked into vertex colors by the exporter.

public class SmoLight : IDisposable
Inheritance
SmoLight
Implements
Inherited Members

Constructors

SmoLight()

public SmoLight()

SmoLight(SmoLight)

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

public SmoLight(SmoLight other)

Parameters

other SmoLight

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

Color

Light color.

public CImVector Color { get; set; }

Property Value

CImVector

Intensity

Intensity.

public float Intensity { get; set; }

Property Value

float

Position

Position in model space.

public C3Vector Position { get; set; }

Property Value

C3Vector

Rotation

Orientation; spot/direct lights only.

public C4Quaternion Rotation { get; set; }

Property Value

C4Quaternion

Type

The light kind; a LightType value.

public byte Type { get; set; }

Property Value

byte

UseAtten

Whether attenuation applies.

public byte UseAtten { get; set; }

Property Value

byte

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