Directional lights now being filled into m_LightSources
This commit is contained in:
@@ -99,6 +99,18 @@ void LightCullingPass::FillLightList(RenderScene& scene)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for(auto &job : scene.DirectionalLightJobs) {
|
||||||
|
auto directionalLightJob = std::dynamic_pointer_cast<directionalLightJob>(job);
|
||||||
|
if(directionalLightJob) {
|
||||||
|
LightSource p;
|
||||||
|
p.Color = directionalLightJob->Color;
|
||||||
|
p.Intensity = directionalLightJob->Intensity;
|
||||||
|
p.Position = glm::vec4(glm::vec3(directionalLightJob->Position), 1.f);
|
||||||
|
p.Type = LightSource::Directional;
|
||||||
|
m_LightSources.push_back(p);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LightCullingPass::InitializeSSBOs()
|
void LightCullingPass::InitializeSSBOs()
|
||||||
|
|||||||
Reference in New Issue
Block a user