Add vec3 constant to material editor
This commit is contained in:
parent
f52fedc778
commit
5a9856aae4
1 changed files with 3 additions and 0 deletions
|
@ -110,6 +110,9 @@ void MaterialEditor::draw(CommonEditor* editor) {
|
||||||
if(ImGui::MenuItem("Float Constant"))
|
if(ImGui::MenuItem("Float Constant"))
|
||||||
material->nodes.push_back(std::make_unique<FloatConstant>());
|
material->nodes.push_back(std::make_unique<FloatConstant>());
|
||||||
|
|
||||||
|
if(ImGui::MenuItem("Vec3 Constant"))
|
||||||
|
material->nodes.push_back(std::make_unique<Vector3Constant>());
|
||||||
|
|
||||||
ImGui::EndMenu();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue