Added ambient term

This commit is contained in:
Antoine Pilote
2023-09-30 14:26:34 -04:00
parent 34aed2a4c3
commit e284b89769
2 changed files with 2 additions and 0 deletions

View File

@@ -653,6 +653,7 @@ namespace Nuake
shadingShader->SetUniformMat4f("u_Projection", mProjection);
shadingShader->SetUniformMat4f("u_View", mView);
shadingShader->SetUniformVec3("u_EyePosition", scene.GetCurrentCamera()->Translation);
shadingShader->SetUniform1f("u_AmbientTerm", environment->AmbientTerm);
shadingShader->SetUniformTex("m_SSAO", scene.GetEnvironment()->mSSAO->GetOuput()->GetTexture().get(), 9);

View File

@@ -32,6 +32,7 @@ namespace Nuake
float VolumetricFog = 0.90f;
float VolumetricStepCount = 50.f;
float AmbientTerm = 0.5f;
float Exposure = 3.5f;
float Gamma = 1.1f;