Merge pull request #1059 from cdc-mkb/master

Fix "linear_sweep(..., texture=..., scale=..., twist=...)".
This commit is contained in:
Revar Desmera
2023-03-02 14:49:00 -08:00
committed by GitHub

View File

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