Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::DirectionalLightComponent Struct Reference

#include <DirectionalLightComponent.hpp>

Public Member Functions

glm::mat4 getLightSpaceMatrix (const glm::mat4 &lightTransformMatrix, const TransformComponent &cameraTransformComponent, const CameraComponent &cameraComponent, uint8_t levelOfDetail) const
 

Static Public Member Functions

static glm::vec3 getDirection (const glm::mat4 &lightTransformMatrix)
 

Public Attributes

float intensity = 0.5
 
glm::vec3 color = {1.0f, 1.0f, 1.0f}
 

Static Public Attributes

static uint8_t LevelsOfDetail = 4
 
static std::vector< floatCascadePlanes = {0.01, 5.0, 16.0, 32.0, 96.0}
 

Member Function Documentation

◆ getDirection()

static glm::vec3 shkyera::DirectionalLightComponent::getDirection ( const glm::mat4 &  lightTransformMatrix)
inlinestatic

◆ getLightSpaceMatrix()

glm::mat4 shkyera::DirectionalLightComponent::getLightSpaceMatrix ( const glm::mat4 &  lightTransformMatrix,
const TransformComponent cameraTransformComponent,
const CameraComponent cameraComponent,
uint8_t  levelOfDetail 
) const
inline

Member Data Documentation

◆ CascadePlanes

std::vector<float> shkyera::DirectionalLightComponent::CascadePlanes = {0.01, 5.0, 16.0, 32.0, 96.0}
inlinestatic

◆ color

glm::vec3 shkyera::DirectionalLightComponent::color = {1.0f, 1.0f, 1.0f}

◆ intensity

float shkyera::DirectionalLightComponent::intensity = 0.5

◆ LevelsOfDetail

uint8_t shkyera::DirectionalLightComponent::LevelsOfDetail = 4
inlinestatic

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