OpenGL: Implement DOT3 texture combiner

This was only implemented in the software rasterizer.
This commit is contained in:
Yuri Kunde Schlesner 2016-03-06 00:45:53 -08:00
parent 2d40891b45
commit 4dadb250ef

View File

@ -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 += "dot(" + variable_name + "[0], " + variable_name + "[1])";
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);