diff options
author | bunnei <bunneidev@gmail.com> | 2015-11-19 03:16:06 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-02-05 23:17:32 +0100 |
commit | 5f3bad8fb19004eebc1aec7df295d9c807a64fef (patch) | |
tree | 391a997b4a24d291410d7b13828a4c883392bdae /src | |
parent | gl_shader_gen: Fix bug with lighting where clamp highlights was only applied to last light. (diff) | |
download | yuzu-5f3bad8fb19004eebc1aec7df295d9c807a64fef.tar yuzu-5f3bad8fb19004eebc1aec7df295d9c807a64fef.tar.gz yuzu-5f3bad8fb19004eebc1aec7df295d9c807a64fef.tar.bz2 yuzu-5f3bad8fb19004eebc1aec7df295d9c807a64fef.tar.lz yuzu-5f3bad8fb19004eebc1aec7df295d9c807a64fef.tar.xz yuzu-5f3bad8fb19004eebc1aec7df295d9c807a64fef.tar.zst yuzu-5f3bad8fb19004eebc1aec7df295d9c807a64fef.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_gen.cpp | 2 |
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); 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"; else out += "light_vector = normalize(" + light_src + ".position - fragment_position);\n"; |