From d032b85aa1ec48c6155da6995491be38233f94db Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Sun, 6 Mar 2016 03:55:27 -0800 Subject: [PATCH] fixup! fixup! OpenGL: Implement DOT3 texture combiner --- src/video_core/renderer_opengl/gl_shader_gen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp index efe3dda78..bdcc83996 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.cpp +++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp @@ -199,7 +199,7 @@ static void AppendColorCombiner(std::string& out, TevStageConfig::Operation oper out += "min(" + variable_name + "[0] + " + variable_name + "[1], vec3(1.0)) * " + variable_name + "[2]"; break; case Operation::Dot3_RGB: - out += "vec3(dot(" + variable_name + "[0], " + variable_name + "[1]))"; + out += "vec3(dot(" + variable_name + "[0] - vec3(0.5), " + variable_name + "[1] - vec3(0.5)) * 2.0 + vec3(0.5))"; break; default: out += "vec3(0.0)";