Camera position refactor
This commit is contained in:
@@ -15,8 +15,8 @@ lightsToRender cfig w =
|
||||
where
|
||||
getLS = getlsparam . _lsParam
|
||||
getTLS = getlsparam . _tlsParam
|
||||
cbox = w ^. cWorld . lWorld . cwCam . cwcBoundBox
|
||||
cpos = w ^. cWorld . lWorld . cwCam . cwcCenter
|
||||
cbox = w ^. cWorld . lWorld . camPos . camBoundBox
|
||||
cpos = w ^. cWorld . lWorld . camPos . camCenter
|
||||
getlsparam ls
|
||||
| not (pointInPolygon lpos cbox) && extraculltest = Nothing
|
||||
| otherwise = Just (_lsPos ls, rad ^ (2 :: Int), _lsCol ls)
|
||||
|
||||
Reference in New Issue
Block a user