Merge pull request #1197 from BelfrySCAD/revarbat_dev

Fix inverted textures and reversed faces in _texured_linear_sweep()
This commit is contained in:
Revar Desmera 2023-06-27 20:20:02 -07:00 committed by GitHub
commit 9cbfa540bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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])