Skip to content

Commit

Permalink
Implement PBR Shaders (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
datacrystals committed Apr 16, 2022
1 parent 4ce0dee commit 631c303
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/Core/Editor/Widgets/GUI_Widget_ObjectProperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ void Widget_ObjectProperties::Draw() {
FloatToVec(Color, &SceneManager_->Scenes_[SceneManager_->ActiveScene_]->SpotLights[Index]->Color);


ImGui::DragFloat("Rolloff Constant", &SceneManager_->Scenes_[SceneManager_->ActiveScene_]->SpotLights[Index]->RolloffConstant, 0.01f);
ImGui::DragFloat("Intensity", &SceneManager_->Scenes_[SceneManager_->ActiveScene_]->SpotLights[Index]->Intensity, 0.01f);
ImGui::SameLine();
ImGui::HelpMarker("Sets the constant offset controlling lamp attenuation over distance. If you're trying to make the rolloff sharper, try linear or quadratic.");
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::SameLine();
Expand Down

0 comments on commit 631c303

Please sign in to comment.