Work on distortion shader
This commit is contained in:
@@ -5,7 +5,6 @@ import Dodge.Data.Distortion
|
||||
|
||||
updateDistortion :: Distortion -> Maybe Distortion
|
||||
updateDistortion = \case
|
||||
RadialDistortion a b c v
|
||||
| v > 1 -> Just $ RadialDistortion a b c $ max 1 (v - 0.05)
|
||||
| v < 1 -> Just $ RadialDistortion a b c $ min 1 (v + 0.05)
|
||||
RadialDistortion a b c d t
|
||||
| t > 0 -> Just $ RadialDistortion a b c d $ t-1
|
||||
| otherwise -> Nothing
|
||||
|
||||
Reference in New Issue
Block a user