VERY experimental Nintendo Switch 2 emulator
C++
gl_shader_gen: Fix directional lights.
bunnei9cd5c49ee5ed
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cppindex 7821170dbb..8bc8e2b362 100644--- a/src/video_core/renderer_opengl/gl_shader_gen.cpp+++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp@@ -416,7 +416,7 @@ vec4 secondary_fragment_color = vec4(0.0);std::string light_src = "light_src[" + std::to_string(num) + "]";if (config.light_src[light_index].directional)- out += "light_vector = normalize(-" + light_src + ".position);\n";+ out += "light_vector = normalize(" + light_src + ".position);\n";elseout += "light_vector = normalize(" + light_src + ".position - fragment_position);\n";