mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-15 18:10:59 +01:00
OpenGL: Implement color combiner Operation::Dot3_RGB
This commit is contained in:
parent
0b7efc2be2
commit
0ad050f85d
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue