Vyroda
Game engine made by hand, with modern C++ and Vulkan.
Loading...
Searching...
No Matches
Vyroda::LightManager Class Referenceexport

Public Member Functions

 LightManager ()
void animateAmbientLight (double const delta_time)
void animateSunLight (double const delta_time)
CSM getLightSpaceMatrix (float const near_plane, float const far_plane, glm::mat4 const &M_camera, glm::mat4 const &projection)
Light getSunLight ()
std::span< LightgetPointLights ()
std::span< LightgetSpotLights ()
void computeCSM (glm::mat4 const &camera_view, glm::mat4 const &projection)
glm::vec3 hsv2rgb (float h, float s, float v)

Constructor & Destructor Documentation

◆ LightManager()

Vyroda::LightManager::LightManager ( )
Here is the call graph for this function:

Member Function Documentation

◆ animateAmbientLight()

void Vyroda::LightManager::animateAmbientLight ( double const delta_time)
Here is the call graph for this function:

◆ animateSunLight()

void Vyroda::LightManager::animateSunLight ( double const delta_time)

◆ computeCSM()

void Vyroda::LightManager::computeCSM ( glm::mat4 const & camera_view,
glm::mat4 const & projection )
Here is the call graph for this function:

◆ getLightSpaceMatrix()

CSM Vyroda::LightManager::getLightSpaceMatrix ( float const near_plane,
float const far_plane,
glm::mat4 const & M_camera,
glm::mat4 const & projection )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPointLights()

std::span< Light > Vyroda::LightManager::getPointLights ( )
inline

◆ getSpotLights()

std::span< Light > Vyroda::LightManager::getSpotLights ( )
inline

◆ getSunLight()

Light Vyroda::LightManager::getSunLight ( )
inline

◆ hsv2rgb()

glm::vec3 Vyroda::LightManager::hsv2rgb ( float h,
float s,
float v )
Here is the caller graph for this function:

The documentation for this class was generated from the following files: