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

#include <SpotLightComponent.hpp>

Public Member Functions

glm::mat4 getLightSpaceMatrix (const glm::mat4 &transformMatrix) const
 

Public Attributes

float intensity = 1
 
float range = 5
 
float innerCutoff = glm::radians(15.0f)
 
float outerCutoff = glm::radians(25.0f)
 
glm::vec3 color = {1, 1, 1}
 

Member Function Documentation

◆ getLightSpaceMatrix()

glm::mat4 shkyera::SpotLightComponent::getLightSpaceMatrix ( const glm::mat4 &  transformMatrix) const
inline

Member Data Documentation

◆ color

glm::vec3 shkyera::SpotLightComponent::color = {1, 1, 1}

◆ innerCutoff

float shkyera::SpotLightComponent::innerCutoff = glm::radians(15.0f)

◆ intensity

float shkyera::SpotLightComponent::intensity = 1

◆ outerCutoff

float shkyera::SpotLightComponent::outerCutoff = glm::radians(25.0f)

◆ range

float shkyera::SpotLightComponent::range = 5

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