Refactor light sources
This commit is contained in:
@@ -55,4 +55,4 @@ damCrsOnLine dam p1 p2 = over creatures (IM.map damIfOnLine)
|
||||
| otherwise = cr
|
||||
|
||||
makeTLight :: Int -> Float -> Point3 -> Point3 -> World -> World
|
||||
makeTLight i rad col p = tempLightSources %~ (tLight i rad col p :)
|
||||
makeTLight i rad (V3 r g b) p = tempLightSources %~ (tlsTimeRadColPos i rad (V3 r g b) p :)
|
||||
|
||||
Reference in New Issue
Block a user