added inverse blend mode (#1124)

This commit is contained in:
Turánszki János
2025-06-11 07:41:04 +02:00
committed by GitHub
parent f77d3cd4db
commit 334e5dbc3a
13 changed files with 74 additions and 18 deletions
+7 -6
View File
@@ -317,14 +317,15 @@ void MaterialWindow::Create(EditorComponent* _editor)
MaterialComponent* material = get_material(scene, x);
if (material == nullptr)
continue;
material->userBlendMode = (wi::enums::BLENDMODE)args.iValue;
material->userBlendMode = (wi::enums::BLENDMODE)args.userdata;
}
});
blendModeComboBox.AddItem("Opaque");
blendModeComboBox.AddItem("Alpha");
blendModeComboBox.AddItem("Premultiplied");
blendModeComboBox.AddItem("Additive");
blendModeComboBox.AddItem("Multiply");
blendModeComboBox.AddItem("Opaque", wi::enums::BLENDMODE_OPAQUE);
blendModeComboBox.AddItem("Alpha", wi::enums::BLENDMODE_ALPHA);
blendModeComboBox.AddItem("Premultiplied", wi::enums::BLENDMODE_PREMULTIPLIED);
blendModeComboBox.AddItem("Additive", wi::enums::BLENDMODE_ADDITIVE);
blendModeComboBox.AddItem("Multiply", wi::enums::BLENDMODE_MULTIPLY);
blendModeComboBox.AddItem("Inverse", wi::enums::BLENDMODE_INVERSE);
blendModeComboBox.SetEnabled(false);
blendModeComboBox.SetTooltip("Set the blend mode of the material.");
AddWidget(&blendModeComboBox);