Add texture size fields to terrain textures and improve editor performance

This commit is contained in:
Lukas Aldershaab 2021-01-02 18:33:15 +01:00
parent 9caa08b7f0
commit d3996aec84
7 changed files with 414 additions and 44 deletions

View file

@ -174,6 +174,15 @@ protected:
BaseTexFormat mBaseTexFormat;
U32 mDetailTexSize;
GFXFormat mDetailTexFormat;
U32 mMacroTexSize;
GFXFormat mMacroTexFormat;
U32 mNormalTexSize;
GFXFormat mNormalTexFormat;
U32 mOrmTexSize;
GFXFormat mOrmTexFormat;
///
TerrCell *mCell;
@ -258,6 +267,14 @@ protected:
static bool _setSquareSize( void *obj, const char *index, const char *data );
static bool _setBaseTexSize(void *obj, const char *index, const char *data);
static bool _setBaseTexFormat(void *obj, const char *index, const char *data);
static bool _setDetailTexSize(void *obj, const char *index, const char *data);
static bool _setDetailTexFormat(void *obj, const char *index, const char *data);
static bool _setMacroTexSize(void *obj, const char *index, const char *data);
static bool _setMacroTexFormat(void *obj, const char *index, const char *data);
static bool _setNormalTexSize(void *obj, const char *index, const char *data);
static bool _setNormalTexFormat(void *obj, const char *index, const char *data);
static bool _setOrmTexSize(void *obj, const char *index, const char *data);
static bool _setOrmTexFormat(void *obj, const char *index, const char *data);
static bool _setLightMapSize( void *obj, const char *index, const char *data );
public: