Remove temporary light sources as separate entity
This commit is contained in:
@@ -16,11 +16,11 @@ lightsToRender :: Configuration -> Camera -> LWorld -> [(Point3, Float, Point3)]
|
||||
lightsToRender cfig campos w = take (fromEnum $ cfig ^. graphics_num_shadow_casters) $
|
||||
sortOn (\(_,x,_) -> negate x) $
|
||||
mapMaybe getLS (IM.elems $ w ^. lightSources)
|
||||
++ mapMaybe getTLS (w ^. tempLightSources)
|
||||
-- ++ mapMaybe getTLS (w ^. tempLightSources)
|
||||
++ mapMaybe getlsparam (w ^. lights)
|
||||
where
|
||||
getLS = getlsparam . _lsParam
|
||||
getTLS = getlsparam . _tlsParam
|
||||
-- getTLS = getlsparam . _tlsParam
|
||||
cbox = campos ^. camBoundBox
|
||||
cpos = campos ^. camCenter
|
||||
getlsparam ls
|
||||
|
||||
Reference in New Issue
Block a user