Tweak view distances

This commit is contained in:
2023-01-06 16:55:17 +00:00
parent 5b9e0c39b5
commit 87ea7da1d4
6 changed files with 65 additions and 70 deletions
+4 -3
View File
@@ -2,6 +2,7 @@ module Dodge.Render.ShapePicture (
worldSPic,
) where
import Dodge.Viewpoints
import Dodge.Render.Label
import Dodge.WorldEvent.ThingsHit
import Control.Lens
@@ -27,7 +28,7 @@ import Dodge.Render.InfoBox
import Dodge.Render.List
import Dodge.ShortShow
import Dodge.SoundLogic.LoadSound
import Dodge.Update.Camera
--import Dodge.Update.Camera
import Dodge.Zoning
import Dodge.Zoning.Base
import Geometry
@@ -473,9 +474,9 @@ viewBoundaries :: CWorld -> Picture
viewBoundaries w =
setLayer DebugLayer $
color green (foldMap (polygonWire . _grBound) grs)
<> color yellow (foldMap (\q -> line [p, q]) $ farWallPoints p w)
<> color yellow (foldMap (\q -> line [p, q]) $ getViewpoints p w)
where
p = _crPos $ youc w
p = w ^. camPos . camViewFrom
grs = filter (pointInOrOnPolygon p . _grBound) (_cwgGameRooms $ _cwGen w)
viewClipBounds :: Configuration -> World -> Picture