mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-27 16:17:12 +03:00
Added cast,receive shadows & unlit flags in the materials
This commit is contained in:
@@ -472,12 +472,31 @@ void MaterialEditor::Draw(Ref<Nuake::Material> material)
|
||||
}
|
||||
|
||||
{
|
||||
ImGui::Text("Unlit");
|
||||
ImGui::Text("Receive Shadows");
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
ImGui::Checkbox("##ReceiveShadows", &material->m_ReceiveShadows);
|
||||
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TableNextColumn();
|
||||
}
|
||||
|
||||
{
|
||||
ImGui::Text("Cast Shadows");
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
bool unlit = material->data.u_Unlit == 1;
|
||||
ImGui::Checkbox("##Unlit", &unlit);
|
||||
material->data.u_Unlit = (int)unlit;
|
||||
ImGui::Checkbox("##CastShadows", &material->m_CastShadows);
|
||||
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TableNextColumn();
|
||||
}
|
||||
|
||||
{
|
||||
ImGui::Text("Unlit");
|
||||
ImGui::TableNextColumn();
|
||||
bool val = static_cast<bool>(material->data.u_Unlit);
|
||||
ImGui::Checkbox("##Unlit", &val);
|
||||
material->data.u_Unlit = static_cast<int>(val);
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TableNextColumn();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user