Table of Contents

Class McnrEntry

Namespace
WoWLib.Formats.ADT.Chunks
Assembly
WoWLib.dll

A terrain vertex normal (MCNR entry, 3 signed bytes): the X, Z, Y components, 127 == 1.0. One per MCVT height vertex (9x9 + 8x8 = 145).

public class McnrEntry : IDisposable
Inheritance
McnrEntry
Implements
Inherited Members

Constructors

McnrEntry()

public McnrEntry()

McnrEntry(sbyte[])

public McnrEntry(sbyte[] normal)

Parameters

normal sbyte[]

McnrEntry(McnrEntry)

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

public McnrEntry(McnrEntry other)

Parameters

other McnrEntry

Properties

Normal

The normal components, plain X, Y, Z order; 127 == 1.0, -127 == -1.0. (The often-quoted X, Z, Y layout is wrong: verified empirically against MCVT-derived gradients, wrender 2026-08.)

public FixedArray<sbyte> Normal { get; set; }

Property Value

FixedArray<sbyte>

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

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Reference-identity hash (the C++ type has no hash to mirror).

public override int GetHashCode()

Returns

int

Operators

operator ==(McnrEntry?, McnrEntry?)

public static bool operator ==(McnrEntry? l, McnrEntry? r)

Parameters

l McnrEntry
r McnrEntry

Returns

bool

operator !=(McnrEntry?, McnrEntry?)

public static bool operator !=(McnrEntry? l, McnrEntry? r)

Parameters

l McnrEntry
r McnrEntry

Returns

bool