TrnNWN2WaterPayload

Water information (WATR)

Constructors

this
this(ubyte[] payload)

Build packet with raw data

Members

Functions

dump
string dump()
Undocumented in source. Be warned that the author may not have intended to support it.
serialize
ubyte[] serialize()
validate
void validate(bool strict)

Structs

Texture
struct Texture
Triangle
struct Triangle
Vertex
struct Vertex

Variables

color
float[3] color;

R,G,B

dds
ubyte[] dds;

DDS bitmap

megatile_position
uint32_t[2] megatile_position;

Position of the associated megatile in the terrain

name
char[32] name;

WATR name.

reflect_bias
float reflect_bias;

Reflection bias

reflect_power
float reflect_power;

Reflection power

ripple
float[2] ripple;

Ripples

smoothness
float smoothness;

Smoothness

specular_cofficient
float specular_cofficient;

Specular map coefficient

specular_power
float specular_power;

Specular map power

textures
Texture[3] textures;

Water textures

triangles
Triangle[] triangles;

Walkmesh grid triangles positions. Each uint16_t an index in vertices corresponding to a triangle vertex

triangles_flags
uint32_t[] triangles_flags;

0 = has water, 1 = no water

unknown
ubyte[96] unknown;
uv_offset
float[2] uv_offset;

x,y offset in water-space <=> megatile_coordinates/8

vertices
Vertex[] vertices;

Meta