Golias Engine
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Member Functions | Public Attributes | List of all members
DirectionalLight Struct Reference

#include <components.h>

Public Member Functions

glm::mat4 get_light_space_matrix (glm::mat4 camera_view, glm::mat4 camera_proj) const
 
glm::mat4 get_light_space_matrix () const
 

Public Attributes

glm::vec3 direction {0.0f, -1.0f, 0.0f}
 
glm::vec3 color {1.0f}
 
float intensity = 1.0f
 
bool castShadows = true
 
float shadowDistance = 50.0f
 
float shadowNear = 1.0f
 
float shadowFar = 100.0f
 

Member Function Documentation

◆ get_light_space_matrix() [1/2]

glm::mat4 DirectionalLight::get_light_space_matrix ( ) const

◆ get_light_space_matrix() [2/2]

glm::mat4 DirectionalLight::get_light_space_matrix ( glm::mat4  camera_view,
glm::mat4  camera_proj 
) const

Member Data Documentation

◆ castShadows

bool DirectionalLight::castShadows = true

◆ color

glm::vec3 DirectionalLight::color {1.0f}

◆ direction

glm::vec3 DirectionalLight::direction {0.0f, -1.0f, 0.0f}

◆ intensity

float DirectionalLight::intensity = 1.0f

◆ shadowDistance

float DirectionalLight::shadowDistance = 50.0f

◆ shadowFar

float DirectionalLight::shadowFar = 100.0f

◆ shadowNear

float DirectionalLight::shadowNear = 1.0f

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