Table of Contents

Class VolumetricFog

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

One volumetric fog (VFOG, 8.0+).

public class VolumetricFog : IDisposable
Inheritance
VolumetricFog
Implements
Inherited Members

Constructors

VolumetricFog()

public VolumetricFog()

VolumetricFog(C3Vector, float[], float, C3Vector, float, C4Vector, float[], int[], uint, uint, uint, uint)

public VolumetricFog(C3Vector color, float[] intensity, float unk18, C3Vector position, float unk28, C4Vector rotation, float[] radius, int[] animationPeriods, uint flags, uint modelFdid, uint fogLevel, uint id)

Parameters

color C3Vector
intensity float[]
unk18 float
position C3Vector
unk28 float
rotation C4Vector
radius float[]
animationPeriods int[]
flags uint
modelFdid uint
fogLevel uint
id uint

VolumetricFog(VolumetricFog)

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

public VolumetricFog(VolumetricFog other)

Parameters

other VolumetricFog

Properties

AnimationPeriods

Animation periods, used to derive the animation coefficients.

public FixedArray<int> AnimationPeriods { get; set; }

Property Value

FixedArray<int>

Color

Fog color as r, g, b floats; 1.0 equals 255.

public C3Vector Color { get; set; }

Property Value

C3Vector

Flags

Flags.

public uint Flags { get; set; }

Property Value

uint

FogLevel

Fog level, 0 to 2 (inclusive against the client's volumeFogLevel setting).

public uint FogLevel { get; set; }

Property Value

uint

Id

Globally unique fog id.

public uint Id { get; set; }

Property Value

uint

Intensity

Radius-related intensities.

public FixedArray<float> Intensity { get; set; }

Property Value

FixedArray<float>

ModelFdid

FileDataID of the volume model (one M2Batch only); 0 falls back to spells/errorcube.m2.

public uint ModelFdid { get; set; }

Property Value

uint

Position

Position, in server coordinates.

public C3Vector Position { get; set; }

Property Value

C3Vector

Radius

Fog start radii.

public FixedArray<float> Radius { get; set; }

Property Value

FixedArray<float>

Rotation

Rotation quaternion.

public C4Vector Rotation { get; set; }

Property Value

C4Vector

Unk18

Unknown; 0 to 5000 in shipped files.

public float Unk18 { get; set; }

Property Value

float

Unk28

Unknown; 0 in files, set to 1.0 on loading.

public float Unk28 { 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()