Functions related to depth map creation and management. More...
Classes | |
struct | DepthMap |
Represents a depth map used in rendering. More... | |
Functions | |
void | create_depthmap (DepthMap *depthMap, struct WorldShaders *shaders) |
Creates a depth map for shadow mapping. | |
Functions related to depth map creation and management.
void create_depthmap | ( | DepthMap * | depthMap, |
struct WorldShaders * | shaders | ||
) |
Creates a depth map for shadow mapping.
This function initializes and configures a depth map, which is used for shadow mapping in a 3D scene. It sets up the necessary framebuffer, texture, and other OpenGL resources required for rendering depth information from the light's perspective.
depthMap | A pointer to a DepthMap structure that will be initialized. |
shaders | A pointer to a WorldShaders structure containing the shaders used for rendering the depth map. |