Skip to content

Commit

Permalink
Merge pull request #357 from carboncopies/356-add-more-grid-config-op…
Browse files Browse the repository at this point in the history
…tions

Add Grid Color Options
  • Loading branch information
datacrystals authored Sep 1, 2022
2 parents 5abb2c2 + de8f600 commit 1375247
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void ERS_CLASS_ViewportMenu::AddSpotLight(ERS_CLASS_ShadowMaps* ShadowMaps) {


Light->Intensity = 1.0f;
Light->MaxDistance = 20.0f;
Light->MaxDistance = 20.0f;can you decompile pdb

Light->CutOff = 45.0f;
Light->Rolloff = 10.0f;
Expand Down Expand Up @@ -249,6 +249,17 @@ void ERS_CLASS_ViewportMenu::DrawMenu(ERS_STRUCT_Viewport* Viewport, ERS_CLASS_S
// Base Color
if (ImGui::BeginMenu("Base")) {

if (ImGui::MenuItem("Red")) {
Viewport->Grid->GridColor_ = glm::vec3(1.0f, 0.0f, 0.0f);
}

if (ImGui::MenuItem("Green")) {
Viewport->Grid->GridColor_ = glm::vec3(0.0f, 1.0f, 0.0f);
}

if (ImGui::MenuItem("Blue")) {
Viewport->Grid->GridColor_ = glm::vec3(0.0f, 0.0f, 1.0f);
}

if (ImGui::MenuItem("White")) {
Viewport->Grid->GridColor_ = glm::vec3(1.0f);
Expand Down

0 comments on commit 1375247

Please sign in to comment.