Skip to content
Snippets Groups Projects
Commit 01b40763 authored by bunnei's avatar bunnei
Browse files

gl_shader_gen: View should be normalized.

parent c37de30c
No related branches found
No related tags found
No related merge requests found
...@@ -341,11 +341,11 @@ static void WriteLighting(std::string& out, const PicaShaderConfig& config) { ...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment