summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-11-25 04:59:14 +0100
committerbunnei <bunneidev@gmail.com>2016-02-05 23:20:15 +0100
commit01b407638cdee1b2435018d730a698aa1c65d6a4 (patch)
treee70d5303d354f0d016dcfb194d8931146c9da471 /src/video_core
parentgl_shader_gen: Implement fragment lighting fresnel effect. (diff)
downloadyuzu-01b407638cdee1b2435018d730a698aa1c65d6a4.tar
yuzu-01b407638cdee1b2435018d730a698aa1c65d6a4.tar.gz
yuzu-01b407638cdee1b2435018d730a698aa1c65d6a4.tar.bz2
yuzu-01b407638cdee1b2435018d730a698aa1c65d6a4.tar.lz
yuzu-01b407638cdee1b2435018d730a698aa1c65d6a4.tar.xz
yuzu-01b407638cdee1b2435018d730a698aa1c65d6a4.tar.zst
yuzu-01b407638cdee1b2435018d730a698aa1c65d6a4.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_gen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp
index 6487172b4..4f87c5846 100644
--- a/src/video_core/renderer_opengl/gl_shader_gen.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp
@@ -341,11 +341,11 @@ static void WriteLighting(std::string& out, const PicaShaderConfig& config) {
break;
case Regs::LightingLutInput::VH:
- index = std::string("dot(view, " + half_angle + ")");
+ index = std::string("dot(normalize(view), " + half_angle + ")");
break;
case Regs::LightingLutInput::NV:
- index = std::string("dot(normal, view)");
+ index = std::string("dot(normal, normalize(view))");
break;
case Regs::LightingLutInput::LN: