21 lines
514 B
C
21 lines
514 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 falloff = 1.5;
|
|
float falloff_smooth = 0.0f;
|
|
HydraID entity_id;
|
|
uint32_t light_type;
|
|
};
|
|
|
|
#endif /* HYDRAECSLIGHTCOMPONENT */
|