Refactor light sources
This commit is contained in:
@@ -47,11 +47,7 @@ flareCircleAt col alphax tranv = flares .:~ CircFlare
|
||||
|
||||
|
||||
explosionFlashAt :: Point2 -> World -> World
|
||||
explosionFlashAt p = tempLightSources .:~ tlsTimeRadFunPos 20 150 intensityFunc (addZ 20 p)
|
||||
where
|
||||
intensityFunc x
|
||||
| x < 10 = 1 / (10 - fromIntegral x)
|
||||
| otherwise = 1
|
||||
explosionFlashAt p = tempLightSources .:~ tlsTimeRadFunPos 20 150 (TLSFade 1 10) (addZ 20 p)
|
||||
|
||||
ptFlicker :: Particle -> World -> World
|
||||
ptFlicker pt
|
||||
|
||||
Reference in New Issue
Block a user