Graphics/ForwardFramePipeline: Frustum cull lights

This commit is contained in:
Jérôme Leclercq
2022-02-02 19:39:46 +01:00
parent 29cd77db55
commit de7fee348a
10 changed files with 33 additions and 18 deletions

View File

@@ -187,7 +187,7 @@ int main()
entt::entity headingEntity = registry.create();
{
auto& entityLight = registry.emplace<Nz::LightComponent>(playerEntity);
entityLight.AttachLight(std::make_shared<Nz::DirectionalLight>(), 1);
entityLight.AttachLight(std::make_shared<Nz::SpotLight>(), 1);
auto& entityGfx = registry.emplace<Nz::GraphicsComponent>(playerEntity);
entityGfx.AttachRenderable(model, 1);