Files
HydraV3/HydraEngine/source/ecs/components/HydraLightComponent.h
T

25 lines
611 B
C

#ifndef HYDRAECSLIGHTCOMPONENT
#define HYDRAECSLIGHTCOMPONENT
#include "../../engine/HydraEngine.h"
struct HydraLightComponent
{
glm::vec4 ambient = {0.0f, 0.0f, 0.0f, 0.0f};
glm::vec4 diffuse = {1.0f, 1.0f, 1.0f, 1.0f};
glm::vec4 specular = {1.0f, 1.0f, 1.0f, 1.0f};
float intensity = 1.0f;
float constant = 1.0f;
float linear = 0.7;
float quadratic = 1.8;
float cutoff = 0.5f;
float cutoff_outer = 0.75f;
HydraID entity_id;
uint32_t light_type;
uint32_t shadow_map_id = 0;
uint32_t shadow_caster = 0;
uint32_t padding0;
uint32_t padding1;
};
#endif /* HYDRAECSLIGHTCOMPONENT */