mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 09:50:15 +00:00
OpenGL: Implement color combiner Operation::Dot3_RGB (#15)
This commit is contained in:
parent
d6c9d5b4f1
commit
47ce9f29f3
@ -198,6 +198,9 @@ static void AppendColorCombiner(std::string& out, TevStageConfig::Operation oper
|
|||||||
case Operation::AddThenMultiply:
|
case Operation::AddThenMultiply:
|
||||||
out += "min(" + variable_name + "[0] + " + variable_name + "[1], vec3(1.0)) * " + variable_name + "[2]";
|
out += "min(" + variable_name + "[0] + " + variable_name + "[1], vec3(1.0)) * " + variable_name + "[2]";
|
||||||
break;
|
break;
|
||||||
|
case Operation::Dot3_RGB:
|
||||||
|
out += "vec3(dot(" + variable_name + "[0] - vec3(0.5), " + variable_name + "[1] - vec3(0.5)) * 4.0)";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
out += "vec3(0.0)";
|
out += "vec3(0.0)";
|
||||||
LOG_CRITICAL(Render_OpenGL, "Unknown color combiner operation: %u", operation);
|
LOG_CRITICAL(Render_OpenGL, "Unknown color combiner operation: %u", operation);
|
||||||
|
Loading…
Reference in New Issue
Block a user