From 6aef65212ececb3ebc26a88f9619036faeb5d6e8 Mon Sep 17 00:00:00 2001 From: datacrystals Date: Sun, 12 Jun 2022 02:36:48 +0000 Subject: [PATCH] Implement Spot Light Shadows (#217) --- .../Core/Editor/Widgets/GUI_Widget_ObjectProperties.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Editor/Widgets/GUI_Widget_ObjectProperties.cpp b/Source/Core/Editor/Widgets/GUI_Widget_ObjectProperties.cpp index 92d7aaaed8..9059247104 100644 --- a/Source/Core/Editor/Widgets/GUI_Widget_ObjectProperties.cpp +++ b/Source/Core/Editor/Widgets/GUI_Widget_ObjectProperties.cpp @@ -100,12 +100,12 @@ void Widget_ObjectProperties::Draw() { ImGui::HelpMarker("Sets the brightness of the light source, increase this for a brighter light."); - ImGui::DragFloat("Cutoff", &SceneManager_->Scenes_[SceneManager_->ActiveScene_]->SpotLights[Index]->CutOff, 0.01f); + ImGui::DragFloat("Cutoff Angle", &SceneManager_->Scenes_[SceneManager_->ActiveScene_]->SpotLights[Index]->CutOff, 0.01f); ImGui::SameLine(); - ImGui::HelpMarker("Set the inner circle cutoff point. Will start to attenuate outside of this circle."); - ImGui::DragFloat("Outer Cutoff", &SceneManager_->Scenes_[SceneManager_->ActiveScene_]->SpotLights[Index]->OuterCutOff, 0.01f); + ImGui::HelpMarker("Specifies the angle of the spot light's outer cone."); + ImGui::DragFloat("Rolloff Angle", &SceneManager_->Scenes_[SceneManager_->ActiveScene_]->SpotLights[Index]->Rolloff, 0.01f); ImGui::SameLine(); - ImGui::HelpMarker("Sets the outer circle at which attenuation ends. Everything outside this circle is unaffected by the light."); + ImGui::HelpMarker("Sets the angle at which the outer cone begins to roll off. This angle sets the inner cone which is unaffected by rolloff. Rolloff occurs in the area between the outer and inner cone (this angle)."); }