diff options
author | Jannik Vogel <email@jannikvogel.de> | 2016-04-08 23:16:51 +0200 |
---|---|---|
committer | Jannik Vogel <email@jannikvogel.de> | 2016-04-10 15:31:24 +0200 |
commit | 0ad050f85d4f5d091b32dacac41b23e0b5b251e2 (patch) | |
tree | 22451cc08849b1e0f6fae80456a326e45467b1c4 /src/video_core/renderer_opengl | |
parent | Merge pull request #1653 from mailwl/blx-lr (diff) | |
download | yuzu-0ad050f85d4f5d091b32dacac41b23e0b5b251e2.tar yuzu-0ad050f85d4f5d091b32dacac41b23e0b5b251e2.tar.gz yuzu-0ad050f85d4f5d091b32dacac41b23e0b5b251e2.tar.bz2 yuzu-0ad050f85d4f5d091b32dacac41b23e0b5b251e2.tar.lz yuzu-0ad050f85d4f5d091b32dacac41b23e0b5b251e2.tar.xz yuzu-0ad050f85d4f5d091b32dacac41b23e0b5b251e2.tar.zst yuzu-0ad050f85d4f5d091b32dacac41b23e0b5b251e2.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_gen.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp index ee4b54ab9..646b4eaaf 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.cpp +++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp @@ -198,6 +198,9 @@ static void AppendColorCombiner(std::string& out, TevStageConfig::Operation oper case Operation::AddThenMultiply: 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] - vec3(0.5), " + variable_name + "[1] - vec3(0.5)) * 4.0)"; + break; default: out += "vec3(0.0)"; LOG_CRITICAL(Render_OpenGL, "Unknown color combiner operation: %u", operation); |