URL: https://graphicscomputing.fr/cgp/reference/skybox_drawable/
Description: Cube map drawn around the camera as a background.

# skybox_drawable

Cube map drawn around the camera as a background.

Fields:

- `opengl_shader_structure shader` - Shader program of the skybox, compiled from inline sources by initialize_data_on_gpu and deleted by clear.
- `opengl_texture_image_structure texture` - Cubemap texture of the skybox, set by the user, bound to texture unit 0 and sent to the uniform image_skybox.
- `opengl_vbo_structure vbo_position` - VBO storing the positions of the cube of side 2 centered at the origin, bound to shader location 0.
- `opengl_ebo_structure ebo_connectivity` - EBO storing the triangles of the skybox cube.
- `GLuint vao` - OpenGL id of the Vertex Array Object of the skybox, 0 when not initialized.
- `affine model` - Model transform sent to the uniform model, whose translation is ignored by the skybox vertex shader.
- `mat3 skybox_rotation` - Rotation applied to the lookup direction in the cubemap, sent to the uniform skybox_rotation and set to identity by initialize_data_on_gpu.
- `float alpha_color_blending` - Weight in [0,1] of color_blending mixed with the cubemap color, sent to the uniform alpha_color_blending, 0 by default.
- `vec3 color_blending` - RGB color mixed with the cubemap color according to alpha_color_blending, sent to the uniform color_blending, white by default.

Functions taking it:

- `void draw(skybox_drawable const& drawable, environment_generic_structure const& environment = environment_generic_structure())` - Draw the skybox; call it first with depth writing disabled (glDepthMask(GL_FALSE)).
