mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 21:19:55 +00:00
Add some comments to ESM::Land
This commit is contained in:
parent
0ff786bebd
commit
5252dbcf1f
1 changed files with 12 additions and 0 deletions
|
@ -76,17 +76,29 @@ struct Land
|
||||||
|
|
||||||
struct LandData
|
struct LandData
|
||||||
{
|
{
|
||||||
|
// Initial reference height for the first vertex, only needed for filling mHeights
|
||||||
float mHeightOffset;
|
float mHeightOffset;
|
||||||
|
// Height in world space for each vertex
|
||||||
float mHeights[LAND_NUM_VERTS];
|
float mHeights[LAND_NUM_VERTS];
|
||||||
|
|
||||||
|
// 24-bit normals, these aren't always correct though. Edge and corner normals may be garbage.
|
||||||
VNML mNormals[LAND_NUM_VERTS * 3];
|
VNML mNormals[LAND_NUM_VERTS * 3];
|
||||||
|
|
||||||
|
// 2D array of texture indices. An index can be used to look up an ESM::LandTexture,
|
||||||
|
// but to do so you must subtract 1 from the index first!
|
||||||
|
// An index of 0 indicates the default texture.
|
||||||
uint16_t mTextures[LAND_NUM_TEXTURES];
|
uint16_t mTextures[LAND_NUM_TEXTURES];
|
||||||
|
|
||||||
|
// 24-bit RGB color for each vertex
|
||||||
unsigned char mColours[3 * LAND_NUM_VERTS];
|
unsigned char mColours[3 * LAND_NUM_VERTS];
|
||||||
|
|
||||||
|
// DataTypes available in this LandData, accessing data that is not available is an undefined operation
|
||||||
int mDataTypes;
|
int mDataTypes;
|
||||||
|
|
||||||
// low-LOD heightmap (used for rendering the global map)
|
// low-LOD heightmap (used for rendering the global map)
|
||||||
signed char mWnam[81];
|
signed char mWnam[81];
|
||||||
|
|
||||||
|
// ???
|
||||||
short mUnk1;
|
short mUnk1;
|
||||||
uint8_t mUnk2;
|
uint8_t mUnk2;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue