mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Fixed inverted volumetric direction
This commit is contained in:
@@ -60,7 +60,7 @@ namespace Nuake {
|
||||
std::string u_light = "u_Lights[" + std::to_string(i) + "].";
|
||||
volumetricShader->SetUniformMat4f(u_light + "transform", light.mViewProjections[0]);
|
||||
volumetricShader->SetUniformVec3(u_light + "color", light.Color);
|
||||
volumetricShader->SetUniformVec3(u_light + "direction", light.GetDirection());
|
||||
volumetricShader->SetUniformVec3(u_light + "direction", -light.GetDirection());
|
||||
|
||||
volumetricShader->SetUniformTex(u_light + "shadowmap", light.m_Framebuffers[0]->GetTexture(GL_DEPTH_ATTACHMENT).get(), 5 + i);
|
||||
volumetricShader->SetUniform1f(u_light + "strength", light.Strength);
|
||||
|
||||
Reference in New Issue
Block a user