Improve normal maps on ground and walls

This commit is contained in:
2023-03-19 23:52:19 +00:00
parent e90989ee2d
commit 33f31aa385
24 changed files with 112 additions and 178 deletions
+5 -1
View File
@@ -1,6 +1,7 @@
module Tile
( tileTexCoords
, makeTileFromPoly
, baseFloorTileSize
)
where
import Data.Tile
@@ -28,8 +29,11 @@ makeTileFromPoly :: [Point2] -> Float -> Tile
makeTileFromPoly poly z = Tile
{ _tilePoly = poly
, _tileZero = c
, _tileTangentPos = c + (64 * normalizeV (d -.- c))
, _tileTangentPos = c + (baseFloorTileSize *.* normalizeV (d -.- c))
, _tileArrayZ = z
}
where
(c:d:_) = poly
baseFloorTileSize :: Float
baseFloorTileSize = 50