PBR Factored

This commit is contained in:
Confideo-IOM
2026-07-18 18:39:17 +01:00
parent b7aa111438
commit 120f18b1f9
19 changed files with 218 additions and 72 deletions
@@ -4,11 +4,17 @@
struct HydraLightComponent
{
glm::vec4 light_colour;
float light_intensity;
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;
float padding[1];
};
#endif /* HYDRAECSLIGHTCOMPONENT */