Fix inverted textures and reversed faces in _texured_linear_sweep()

This commit is contained in:
Revar Desmera 2023-06-27 20:12:13 -07:00
parent 4ff3d16605
commit b816a3863f

View file

@ -3634,7 +3634,7 @@ function _textured_linear_sweep(
let(
v = (i + (ti/texcnt.y)) / counts.y,
sc = lerp([1, 1, 1], scale, v),
mat = up((v-0.5)*h) *
mat = down((v-0.5)*h) *
scale(sc) *
zrot(twist*v)
) apply(mat, tile_rows[ti])