Added Lighten only blending mode

This commit is contained in:
Bruno
2021-02-20 00:26:21 +01:00
parent 4718bf166f
commit a612395ca3
3 changed files with 33 additions and 24 deletions

View File

@@ -171,7 +171,7 @@ void ImGuiVisitor::visit(Shader &n)
// ImGui::SameLine(0, 5);
ImGui::SetNextItemWidth(IMGUI_RIGHT_ALIGN);
int mode = n.blending;
if (ImGui::Combo("Blending", &mode, "Normal\0Screen\0Subtract\0Multiply\0Soft light\0Soft subtract\0") ) {
if (ImGui::Combo("Blending", &mode, "Normal\0Screen\0Subtract\0Multiply\0Soft light\0Soft subtract\0Lighten only\0") ) {
n.blending = Shader::BlendMode(mode);
std::ostringstream oss;
@@ -183,7 +183,7 @@ void ImGuiVisitor::visit(Shader &n)
case Shader::BLEND_SCREEN:
oss<<"Screen";
break;
case Shader::BLEND_SUBSTRACT:
case Shader::BLEND_SUBTRACT:
oss<<"Subtract";
break;
case Shader::BLEND_MULTIPLY:
@@ -195,6 +195,9 @@ void ImGuiVisitor::visit(Shader &n)
case Shader::BLEND_SOFT_SUBTRACT:
oss<<"Soft subtract";
break;
case Shader::BLEND_LIGHTEN_ONLY:
oss<<"Lighten only";
break;
case Shader::BLEND_CUSTOM:
oss<<"Custom";
break;