Cel Shading [WIP]
+ Cel shading shader + Shader Manager window
This commit is contained in:
@@ -111,6 +111,17 @@ void imguiManager::WidgetAddObject(ApplicationClass* app)
|
||||
}
|
||||
}
|
||||
|
||||
void imguiManager::WidgetShaderWindow(ApplicationClass* app)
|
||||
{
|
||||
ImGui::Begin("Shader Manager");
|
||||
|
||||
// Checkbox for toggling cel shading globally in the application class by calling the SetCelShading function in the application class when the checkbox state changes
|
||||
ImGui::Checkbox("Enable Cel Shading", &m_EnableCelShading);
|
||||
app->SetCelShading(m_EnableCelShading);
|
||||
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
void imguiManager::WidgetObjectWindow(ApplicationClass* app)
|
||||
{
|
||||
ImGui::Begin("Objects", &showObjectWindow);
|
||||
@@ -300,6 +311,11 @@ bool imguiManager::ImGuiWidgetRenderer(ApplicationClass* app)
|
||||
showLightWindow = true;
|
||||
}
|
||||
|
||||
if (ImGui::Button("Open Shader Window"))
|
||||
{
|
||||
showShaderWindow = true;
|
||||
}
|
||||
|
||||
ImGui::End();
|
||||
|
||||
// Show windows if their corresponding variables are true
|
||||
@@ -318,6 +334,11 @@ bool imguiManager::ImGuiWidgetRenderer(ApplicationClass* app)
|
||||
WidgetLightWindow(app);
|
||||
}
|
||||
|
||||
if (showShaderWindow)
|
||||
{
|
||||
WidgetShaderWindow(app);
|
||||
}
|
||||
|
||||
//render imgui
|
||||
Render();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user