Commit before changing text rendering

This commit is contained in:
jgk
2021-03-07 18:21:45 +01:00
parent 6d34b79764
commit 80a38eca58
2 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -396,6 +396,7 @@ lineOnScreen w (p1:p2:_) = errorPointInPolygon 8 p1 sp || errorPointInPolygon 9
drawWallShadow :: World -> Wall -> Drawing
--drawWallShadow w _ = blank
drawWallShadow w wall
| isRHS sightFrom x y = blank
-- | otherwise = onLayerL l $ color shadCol $ polygon $ points
@@ -404,7 +405,8 @@ drawWallShadow w wall
colorAndLayer | _wlIsSeeThrough wall = setLayer 2
. onLayerL [levLayer ShadowLayer]
. color (withAlpha 0.2 $ _wlColor wall)
| otherwise = onLayerL [levLayer ShadowLayer,2]
| otherwise = setLayer 1
. onLayerL [levLayer ShadowLayer,2]
. color black
(x:y:_) = _wlLine wall
ps = linePointsBetween x y