citra-emu
/
citra-canary
Archived
1
0
Fork 0

gl_shader_gen: View should be normalized.

This commit is contained in:
bunnei 2015-11-24 22:59:14 -05:00
parent c37de30cfc
commit 01b407638c
1 changed files with 2 additions and 2 deletions

View File

@ -341,11 +341,11 @@ static void WriteLighting(std::string& out, const PicaShaderConfig& config) {
break; break;
case Regs::LightingLutInput::VH: case Regs::LightingLutInput::VH:
index = std::string("dot(view, " + half_angle + ")"); index = std::string("dot(normalize(view), " + half_angle + ")");
break; break;
case Regs::LightingLutInput::NV: case Regs::LightingLutInput::NV:
index = std::string("dot(normal, view)"); index = std::string("dot(normal, normalize(view))");
break; break;
case Regs::LightingLutInput::LN: case Regs::LightingLutInput::LN: