Skip to content

Commit

Permalink
Use more conservative cascade distances
Browse files Browse the repository at this point in the history
  • Loading branch information
mokiat committed Sep 12, 2024
1 parent 2f1d626 commit 5f8f38b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ui/controller/play.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (c *PlayController) Start(environment data.Environment, controller data.Con
c.followCamera.SetAutoExposure(false)
c.followCamera.SetExposure(15.0)
c.followCamera.SetAutoFocus(false)
c.followCamera.SetCascadeDistances([]float32{16.0, 160.0, 1600.0})
c.followCamera.SetCascadeDistances([]float32{16.0, 64.0, 1024.0})
c.gfxScene.SetActiveCamera(c.followCamera)

followCameraNode := hierarchy.NewNode()
Expand All @@ -194,7 +194,7 @@ func (c *PlayController) Start(environment data.Environment, controller data.Con
c.bonnetCamera.SetFoV(sprec.Degrees(80))
c.bonnetCamera.SetAutoExposure(false)
c.bonnetCamera.SetExposure(15.0)
c.bonnetCamera.SetCascadeDistances([]float32{16.0, 160.0, 1600.0})
c.bonnetCamera.SetCascadeDistances([]float32{16.0, 64.0, 1024.0})
c.bonnetCamera.SetAutoFocus(false)

bonnetCameraNode := hierarchy.NewNode()
Expand Down
1 change: 1 addition & 0 deletions internal/ui/view/home_screen.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ func (c *homeScreenComponent) createCamera(scene *graphics.Scene) *graphics.Came
result.SetExposure(0.1)
result.SetAutoFocus(false)
result.SetAutoExposureSpeed(0.1)
result.SetCascadeDistances([]float32{64.0})
return result
}

Expand Down

0 comments on commit 5f8f38b

Please sign in to comment.