Table of Contents

Class LightExtension.Gradient

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

One directional gradient sample: a direction (usually axis-aligned) and its value.

public class LightExtension.Gradient : IDisposable
Inheritance
LightExtension.Gradient
Implements
Inherited Members

Constructors

Gradient()

public Gradient()

Gradient(C3Vector, float)

public Gradient(C3Vector direction, float value)

Parameters

direction C3Vector
value float

Gradient(Gradient)

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

public Gradient(LightExtension.Gradient other)

Parameters

other LightExtension.Gradient

Properties

Direction

Gradient direction; usually either xy or z, remainder 0.

public C3Vector Direction { get; set; }

Property Value

C3Vector

Value

Gradient value.

public float Value { get; set; }

Property Value

float

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