Progress towards downscaling bloom texture

This commit is contained in:
2021-07-06 14:06:24 +02:00
parent be7bf986e2
commit f5b139a53e
6 changed files with 80 additions and 176 deletions
+7 -7
View File
@@ -53,17 +53,17 @@ drawFlame
:: Point2 -- ^ Rotate direction
-> Particle -> Picture
drawFlame rotd pt = thePic
where
where
ep = _btPos' pt
thePic = pictures
[ glow
, aPic prot2 18 (scaleChange + 1,2) red
, aPic prot 19 (scaleChange + 0.5,1.5) orange
, aPic prot3 20 (scaleChange,1) white
, aPic 3 prot2 18 (scaleChange + 1,2) red
, aPic 4 prot 19 (scaleChange + 0.5,1.5) orange
, aPic 5 prot3 20 (scaleChange,1) white
]
aPic :: (Point2 -> Point2) -> Float -> Point2 -> Color -> Picture
aPic offset depth (scalex,scaley) col
= setLayer 1
aPic :: Int -> (Point2 -> Point2) -> Float -> Point2 -> Color -> Picture
aPic lay offset depth (scalex,scaley) col
= setLayer lay
. setDepth depth
. uncurry translate (offset ep)
. rotate (pi * 0.5 + argV rotd)