fixup! fixup! OpenGL: Implement DOT3 texture combiner

This commit is contained in:
Yuri Kunde Schlesner 2016-03-06 03:55:27 -08:00
parent 866806fefb
commit d032b85aa1

View File

@ -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)";