Tweak clouds

This commit is contained in:
2025-06-24 16:40:00 +01:00
parent 03bc733de9
commit 35a3f005c4
4 changed files with 16 additions and 30 deletions
+1 -7
View File
@@ -1,4 +1,4 @@
module Dodge.Wall.Dust where
module Dodge.Wall.Dust (muchWlDustAt) where
import Data.Foldable
import Control.Lens
@@ -7,11 +7,6 @@ import Dodge.WorldEvent.Cloud
import Geometry
import RandomHelp
wlDustAt :: Wall -> Point2 -> World -> World
wlDustAt wl = makeCloudAt (Dust (_wlMaterial wl)) 200 . addZ 20
-- where
-- dustcol = _wlColor wl & _4 .~ 1
muchWlDustAt :: Wall -> Point2 -> World -> World
muchWlDustAt wl p = flip (foldl' f) [10, 20 .. 100]
where
@@ -21,4 +16,3 @@ muchWlDustAt wl p = flip (foldl' f) [10, 20 .. 100]
& randGen .~ g
where
(off, g) = runState (randInCirc 1) (_randGen w)
-- dustcol = _wlColor wl & _4 .~ 1