diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-11 12:42:35 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-11 12:42:35 +0000 |
commit | c4809bec8486e12a388fb3f09b6c65a4c6c9a754 (patch) | |
tree | 1ea4a3a5ee8b76de1b5859f03edb94ec9ddd9594 /gfx/models/texture.h | |
parent | Support saving textures with different output types (diff) | |
download | ilt-c4809bec8486e12a388fb3f09b6c65a4c6c9a754.tar.bz2 ilt-c4809bec8486e12a388fb3f09b6c65a4c6c9a754.tar.xz ilt-c4809bec8486e12a388fb3f09b6c65a4c6c9a754.zip |
Support saving a normals texture
Diffstat (limited to 'gfx/models/texture.h')
-rw-r--r-- | gfx/models/texture.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx/models/texture.h b/gfx/models/texture.h index 3974d7f..1aad1e0 100644 --- a/gfx/models/texture.h +++ b/gfx/models/texture.h @@ -20,6 +20,7 @@ public: static void save(const glTexture &, const glm::ivec2 & size, const char * path);
static void saveDepth(const glTexture &, const glm::ivec2 & size, const char * path);
+ static void saveNormal(const glTexture &, const glm::ivec2 & size, const char * path);
private:
static void save(const glTexture &, GLenum, GLenum, const glm::ivec2 & size, unsigned short channels,
|