2026-07-17 15:30:29 +01:00
|
|
|
#ifndef HYDRAECSLIGHTCOMPONENT
|
|
|
|
|
#define HYDRAECSLIGHTCOMPONENT
|
|
|
|
|
#include "../../engine/HydraEngine.h"
|
|
|
|
|
|
|
|
|
|
struct HydraLightComponent
|
|
|
|
|
{
|
2026-07-18 18:39:17 +01:00
|
|
|
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 falloff = 1.5;
|
|
|
|
|
float falloff_smooth = 0.0f;
|
2026-07-17 15:30:29 +01:00
|
|
|
HydraID entity_id;
|
|
|
|
|
uint32_t light_type;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif /* HYDRAECSLIGHTCOMPONENT */
|