17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-07 00:22:56 +01:00

Add sky light, physical atmosphere, auto exposure and bloom to the GL 4.6 renderer

This commit is contained in:
2026-10-15 22:16:41 +02:00
parent ea0dba6dae
commit ce725c3d62
37 changed files with 2342 additions and 32 deletions

View File

@@ -13,6 +13,9 @@ namespace gl
~cubemap();
void alloc(GLint format, int width, int height, GLenum components, GLenum type) const;
// immutable storage of square faces with the given number of mipmap levels, filtered between the levels.
// the levels are meant to be written by compute shaders (glBindImageTexture), so format has to be an image format
void alloc_levels(GLenum format, int size, int levels) const;
void bind(int unit) const;
void generate_mipmaps() const;
};