Skip to content

Commit

Permalink
Adjusted Muttenzer Box Scene
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm4 committed Mar 4, 2024
1 parent c13f925 commit 34dd60d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion apps/app_demo_slproject/source/AppDemoGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2701,9 +2701,11 @@ void AppDemoGui::buildMenuBar(SLScene* s, SLSceneView* sv)

ImGui::Separator();

if (ImGui::SliderFloat("FOV", &fov, 1.f, 179.f))
if (ImGui::SliderFloat("FOV (V)", &fov, 1.f, 179.f))
cam->fov(fov);

ImGui::Text("FOV (H): %3.1f ", cam->fovH());

if (ImGui::SliderFloat("Near Clip", &clipN, 0.001f, 10.f))
cam->clipNear(clipN);

Expand Down
3 changes: 1 addition & 2 deletions apps/app_demo_slproject/source/AppDemoLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6469,8 +6469,7 @@ resolution shadows near the camera and lower resolution shadows further away.");

// create camera
SLCamera* cam1 = new SLCamera();
cam1->translation(0.0f, 0.40f, 6.35f);
cam1->lookAt(0.0f, -0.05f, 0.0f);
cam1->translation(0, 0, 7.2f);
cam1->fov(27);
cam1->focalDist(cam1->translationOS().length());
cam1->background().colors(SLCol4f(0.0f, 0.0f, 0.0f));
Expand Down

0 comments on commit 34dd60d

Please sign in to comment.