Lights
This commit is contained in:
@@ -20,7 +20,6 @@ void HydraDirectionalLightActor::InitialiseComponents()
|
||||
{
|
||||
HydraLightComponent light_comp = {};
|
||||
HydraECS *ecs = GetEngine()->ECS();
|
||||
|
||||
|
||||
light_comp.diffuse = glm::vec4(1,1,1,1);
|
||||
light_comp.intensity = 10000.0f;
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "../ecs/components/HydraRenderableComponent.h"
|
||||
#include "../ecs/components/HydraMaterialComponent.h"
|
||||
#include "../ecs/components/HydraLightComponent.h"
|
||||
#include "../ecs/components/HydraShadowSourceComponent.h"
|
||||
|
||||
#include "../buffer/HydraLightBufferManager.h"
|
||||
#include "../buffer/HydraLightBuffer.h"
|
||||
@@ -31,6 +32,9 @@ void HydraSpotLightActor::InitialiseComponents()
|
||||
|
||||
HydraPositionComponent position_component;
|
||||
ecs->AddComponent<HydraPositionComponent>(GetID(), position_component);
|
||||
|
||||
HydraShadowSourceComponent shadow_component = {};
|
||||
ecs->AddComponent<HydraShadowSourceComponent>(GetID(), shadow_component);
|
||||
}
|
||||
|
||||
void HydraSpotLightActor::Destroy()
|
||||
|
||||
Reference in New Issue
Block a user