Skip to content
Snippets Groups Projects
Commit 14cc1ed9 authored by bunnei's avatar bunnei
Browse files

Merge pull request #1655 from JayFoxRox/hw-dot3

OpenGL: Implement color combiner Operation::Dot3_RGB
parents 24bd57b6 0ad050f8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment