This commit is contained in:
2022-06-26 12:41:15 +01:00
parent 5ba0ca9f9c
commit d386b0ea89
5 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ module Dodge.Render.Lights
( lightsToRender
) where
import Dodge.Data
import Dodge.CullBox
--import Dodge.CullBox
import Geometry
import Data.Maybe
@@ -14,7 +14,7 @@ lightsToRender cfig w = mapMaybe getLS (IM.elems $ _lightSources w)
where
getLS = getlsparam . _lsParam
getTLS = getlsparam . _tlsParam
cbox = cullBox cfig w
cbox = _boundBox w
cpos = _cameraCenter w
getlsparam ls
| not (pointInPolygon lpos cbox) && extraculltest = Nothing