mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Merge pull request #1055 from cdc-mkb/master
Fix "linear_sweep(..., texture=..., scale= ...)".
This commit is contained in:
commit
80809c4416
1 changed files with 1 additions and 1 deletions
|
@ -3489,7 +3489,7 @@ 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([1,1,1], scale, v),
|
sc = lerp(scale, [1,1,1], v),
|
||||||
mat = down((v-0.5)*h) *
|
mat = down((v-0.5)*h) *
|
||||||
scale(sc) *
|
scale(sc) *
|
||||||
zrot(twist*v)
|
zrot(twist*v)
|
||||||
|
|
Loading…
Reference in a new issue