This commit is contained in:
Tleety
2016-01-27 18:07:05 +01:00
parent 97cbc55223
commit 8bcafc1151
7 changed files with 44 additions and 5 deletions
@@ -22,8 +22,6 @@ void DrawColorCorrectionPass::InitializeShaderPrograms()
void DrawColorCorrectionPass::Draw(GLuint sceneTexture, GLuint bloomTexture)
{
ImGui::DragFloat("Exposure", &m_Exposure, 0.01f, 0.f, 10.f, "%.2f", 1.f);
ImGui::DragFloat("Gamma", &m_Gamma, 0.01f, 0.f, 50.f, "%.2f", 1.f);
//glBindFramebuffer(GL_FRAMEBUFFER, 0);
GLERROR("DrawScreenQuadPass::Draw: Pre");
+10
View File
@@ -244,6 +244,16 @@ void RenderSystem::Update(double dt)
RenderScene scene;
scene.Camera = m_Camera;
scene.Viewport = Rectangle(1280, 720);
//auto cSceneLight = m_Renderer->m_World->GetComponents("SceneLight");
//if (cSceneLight != nullptr) {
// m_Gamma = (double)(*cSceneLight->begin())["Gamma"];
// m_Exposure = (double)(*cSceneLight->begin())["Exposure"];
//}
//scene.ambient
//scene.gamma
//scene.exponent
fillModels(scene.OpaqueObjects, scene.TransparentObjects);
fillPointLights(scene.PointLightJobs, m_World);
fillDirectionalLights(scene.DirectionalLightJobs, m_World);