Point light working
This commit is contained in:
@@ -7,14 +7,12 @@
|
||||
#include "../ecs/components/HydraMeshComponent.h"
|
||||
#include "../ecs/components/HydraRenderableComponent.h"
|
||||
#include "../ecs/components/HydraMaterialComponent.h"
|
||||
#include "../ecs/components/HydraPointShadowSourceComponent.h"
|
||||
#include "../ecs/components/HydraLightComponent.h"
|
||||
|
||||
#include "../buffer/HydraLightBufferManager.h"
|
||||
#include "../buffer/HydraLightBuffer.h"
|
||||
|
||||
|
||||
|
||||
|
||||
void HydraPointLightActor::InitialiseComponents()
|
||||
{
|
||||
HydraLightComponent light_comp = {};
|
||||
@@ -29,6 +27,9 @@ void HydraPointLightActor::InitialiseComponents()
|
||||
|
||||
HydraPositionComponent position_component;
|
||||
ecs->AddComponent<HydraPositionComponent>(GetID(), position_component);
|
||||
|
||||
HydraPointShadowSourceComponent shadow_component = {};
|
||||
ecs->AddComponent<HydraPointShadowSourceComponent>(GetID(), shadow_component);
|
||||
}
|
||||
|
||||
void HydraPointLightActor::Destroy()
|
||||
|
||||
Reference in New Issue
Block a user