Struct TrnNWN2WaterPayload
Water information (WATR)
struct TrnNWN2WaterPayload
;
Constructors
Name | Description |
---|---|
this
(payload)
|
Build packet with raw data |
Fields
Name | Type | Description |
---|---|---|
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
|
float | Reflection bias |
reflect_power
|
float | Reflection power |
ripple
|
float[2] | Ripples |
smoothness
|
float | Smoothness |
specular_cofficient
|
float | Specular map coefficient |
specular_power
|
float | Specular map power |
textures
|
TrnNWN2WaterPayload | Water textures |
triangles
|
TrnNWN2WaterPayload | 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 |
Methods
Name | Description |
---|---|
dump
()
|
|
serialize
()
|
|
validate
(strict)
|
Inner structs
Name | Description |
---|---|
Texture
|
|
Triangle
|
|
Vertex
|