mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-04 03:09:45 +00:00
Merge pull request #889 from revarbat/revarbat_dev
Fixed texture path tracing consistency.
This commit is contained in:
commit
433f13156f
1 changed files with 3 additions and 3 deletions
|
@ -2598,7 +2598,7 @@ function textured_linear_sweep(
|
||||||
texh = (vert.z - inset) * tscale,
|
texh = (vert.z - inset) * tscale,
|
||||||
base = lerp(bases[u], select(bases,u+1), uu),
|
base = lerp(bases[u], select(bases,u+1), uu),
|
||||||
norm = unit(lerp(norms[u], select(norms,u+1), uu)),
|
norm = unit(lerp(norms[u], select(norms,u+1), uu)),
|
||||||
xy = base - norm * texh
|
xy = base + norm * texh
|
||||||
) point3d(xy,vert.y)
|
) point3d(xy,vert.y)
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
@ -2619,7 +2619,7 @@ function textured_linear_sweep(
|
||||||
zscale(h/counts.y)
|
zscale(h/counts.y)
|
||||||
) each apply(mat, group)
|
) each apply(mat, group)
|
||||||
],
|
],
|
||||||
[for (face=sorted_row[1]) reverse(face)]
|
sorted_row[1]
|
||||||
]
|
]
|
||||||
]),
|
]),
|
||||||
tmat = move(shift) * scale(scale) * zrot(twist) * up(h/2),
|
tmat = move(shift) * scale(scale) * zrot(twist) * up(h/2),
|
||||||
|
@ -2856,7 +2856,7 @@ function textured_revolution(
|
||||||
[
|
[
|
||||||
for (group = vertzs) each [
|
for (group = vertzs) each [
|
||||||
for (vert = group) let(
|
for (vert = group) let(
|
||||||
part = (j + vert.y) * samples,
|
part = (j + (1-vert.y)) * samples,
|
||||||
u = floor(part),
|
u = floor(part),
|
||||||
uu = part - u,
|
uu = part - u,
|
||||||
tscale =
|
tscale =
|
||||||
|
|
Loading…
Reference in a new issue