summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2015-11-18 21:16:06 -0500
committerGravatar bunnei2016-02-05 17:17:32 -0500
commit5f3bad8fb19004eebc1aec7df295d9c807a64fef (patch)
tree391a997b4a24d291410d7b13828a4c883392bdae /src
parentgl_shader_gen: Fix bug with lighting where clamp highlights was only applied ... (diff)
downloadyuzu-5f3bad8fb19004eebc1aec7df295d9c807a64fef.tar.gz
yuzu-5f3bad8fb19004eebc1aec7df295d9c807a64fef.tar.xz
yuzu-5f3bad8fb19004eebc1aec7df295d9c807a64fef.zip
gl_shader_gen: Fix directional lights.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_gen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp
index 7821170db..8bc8e2b36 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);
416 std::string light_src = "light_src[" + std::to_string(num) + "]"; 416 std::string light_src = "light_src[" + std::to_string(num) + "]";
417 417
418 if (config.light_src[light_index].directional) 418 if (config.light_src[light_index].directional)
419 out += "light_vector = normalize(-" + light_src + ".position);\n"; 419 out += "light_vector = normalize(" + light_src + ".position);\n";
420 else 420 else
421 out += "light_vector = normalize(" + light_src + ".position - fragment_position);\n"; 421 out += "light_vector = normalize(" + light_src + ".position - fragment_position);\n";
422 422