Added DirectionalLights to renderqueue jobs

This commit is contained in:
Tleety
2016-01-18 14:58:19 +01:00
parent 0a3b6f4da1
commit 794635b6a1
3 changed files with 34 additions and 13 deletions
+3
View File
@@ -12,6 +12,7 @@
#include "RenderJob.h"
#include "ModelJob.h"
#include "PointLightJob.h"
#include "DirectionalLightJob.h"
/*
@@ -53,12 +54,14 @@ struct RenderScene
::Camera* Camera;
std::list<std::shared_ptr<RenderJob>> ForwardJobs;
std::list<std::shared_ptr<RenderJob>> PointLightJobs;
std::list<std::shared_ptr<RenderJob>> DirectionalLightJobs;
Rectangle Viewport;
void Clear()
{
ForwardJobs.clear();
PointLightJobs.clear();
DirectionalLightJobs.clear();
}
};