16 #include <cglm/mat4.h>
17 #include <cglm/types.h>
51 GLuint fallback_tex,
const mat4 inv_view_proj,
Common OpenGL definitions, RAII helpers, and utilities.
High-level OpenGL shader management with metadata and uniform caching.
void skybox_cleanup(Skybox *skybox)
Cleans up GPU resources.
Definition: skybox.c:69
void skybox_render(Skybox *skybox, Shader *shader, GLuint env_map, GLuint fallback_tex, const mat4 inv_view_proj, float blur_lod)
Renders the skybox to the current framebuffer.
Definition: skybox.c:36
void skybox_init(Skybox *skybox, Shader *shader)
Initializes skybox geometry and caches uniform locations.
Definition: skybox.c:8
Wrapper for an OpenGL program with uniform caching and automatic cleanup.
Definition: shader.h:71
Persistent state and resource handles for the environment renderer.
Definition: skybox.h:23
GLint u_inv_view_proj
Definition: skybox.h:28
GLuint vbo
Definition: skybox.h:25
GLuint vao
Definition: skybox.h:24
GLint u_env_map
Definition: skybox.h:31
GLint u_blur_lod
Definition: skybox.h:30