Add blurring of lightmap (and refactoring)

This commit is contained in:
2021-05-01 02:28:04 +02:00
parent 9c0e4425da
commit 7711738b3b
33 changed files with 485 additions and 249 deletions
+1
View File
@@ -7,6 +7,7 @@ module Dodge.Event.Keyboard
where
import Dodge.Data
import Dodge.Data.Menu
import Dodge.Picture.Layer
import Dodge.Base
import Dodge.Creature.Action
import Dodge.Config.KeyConfig
+2 -2
View File
@@ -73,9 +73,9 @@ handlePressedKeyInMenu mState scode w = case mState of
updateFramebufferSize :: World -> World
updateFramebufferSize w = w & sideEffects
%~ (resizeSpareFBO (ceiling x `div` divRes) (ceiling y `div` divRes) : )
%~ (resizeSpareFBO (x `div` divRes) (y `div` divRes) x y : )
where
(x,y) = (getWindowX w, getWindowY w)
(x,y) = (round $ getWindowX w, round $ getWindowY w)
divRes = w ^. config . shadow_resolution
cycleResolution 1 = 2