Struct TrnNWN2WaterPayload

Water information (WATR)

struct TrnNWN2WaterPayload ;

Constructors

NameDescription
this (payload) Build packet with raw data

Fields

NameTypeDescription
color float[3]R,G,B
dds ubyte[]DDS bitmap
megatile_position uint[2]Position of the associated megatile in the terrain
name char[32]WATR name.
reflect_bias floatReflection bias
reflect_power floatReflection power
ripple float[2]Ripples
smoothness floatSmoothness
specular_cofficient floatSpecular map coefficient
specular_power floatSpecular map power
textures TrnNWN2WaterPayload.Texture[3]Water textures
triangles TrnNWN2WaterPayload.Triangle[]Walkmesh grid triangles positions. Each uint16_t an index in vertices corresponding to a triangle vertex
triangles_flags uint[]0 = has water, 1 = no water
unknown ubyte[96]
uv_offset float[2]x,y offset in water-space <=> megatile_coordinates/8
vertices TrnNWN2WaterPayload.Vertex[]

Methods

NameDescription
dump ()
serialize ()
validate (strict)

Inner structs

NameDescription
Texture
Triangle
Vertex