Claude Chappe' Curse - A C Game
Logo Institut d'Informatique Claude Chappe Logo Université de Le Mans Logo Raeptor Production
 
Loading...
Searching...
No Matches
Depth Map

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.
 

Detailed Description

Functions related to depth map creation and management.

Function Documentation

◆ create_depthmap()

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.

Parameters
depthMapA pointer to a DepthMap structure that will be initialized.
shadersA pointer to a WorldShaders structure containing the shaders used for rendering the depth map.
Note
Ensure that the DepthMap and WorldShaders structures are properly allocated before calling this function. This function should be called during the initialization phase of your rendering setup.
See also
DepthMap
WorldShaders