mirror of
https://github.com/CNCKitchen/stlTexturizer.git
synced 2026-04-07 22:11:32 +00:00
feat: update theme toggle button text and adjust UV mapping threshold for improved rendering
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ export function computeUV(pos, normal, mode, settings, bounds) {
|
||||
const C = TWO_PI * Math.max(r, 1e-6);
|
||||
const rx = pos.x - center.x;
|
||||
const ry = pos.y - center.y;
|
||||
if (Math.abs(normal.z) > 0.5) {
|
||||
if (Math.abs(normal.z) > 0.7) {
|
||||
// Cap face — normalise by C so one tile = same world size as on the side
|
||||
u = rx / C + 0.5;
|
||||
v = ry / C + 0.5;
|
||||
|
||||
Reference in New Issue
Block a user