spot light

This commit is contained in:
Confideo-IOM
2026-07-24 19:03:34 +01:00
parent 120f18b1f9
commit 3be84d07de
42 changed files with 311 additions and 265 deletions
@@ -21,9 +21,10 @@ void HydraSpotLightActor::InitialiseComponents()
HydraECS *ecs = GetEngine()->ECS();
light_comp.diffuse = glm::vec4(1,1,1,1);
light_comp.intensity = 100.0f;
light_comp.intensity = 1000.0f;
light_comp.light_type = static_cast<uint32_t>(HYDRA_LIGHT_TYPE::HYDRA_LIGHT_SPOT);
light_comp.cutoff = glm::cos(glm::radians(10.0f));
light_comp.cutoff_outer = glm::cos(glm::radians(25.0f));
light_comp.entity_id = GetID();
ecs->AddComponent<HydraLightComponent>(GetID(), light_comp);