WIP
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user