feat(web): trace token shape and texture the whole mesh

TokenViewer now traces the image's alpha channel via /trace and extrudes the silhouette with @tts/mesh, aligning the texture using the full image as the UV framing. The texture is applied to the whole mesh (top, back, and walls) instead of separate solid-white walls.
This commit is contained in:
2026-08-08 15:12:11 +08:00
parent 21fc1b29c1
commit a4759be5ac
5 changed files with 166 additions and 6 deletions
+1
View File
@@ -11,6 +11,7 @@ export default defineConfig({
'/items': 'http://localhost:3000',
'/health': 'http://localhost:3000',
'/asset': 'http://localhost:3000',
'/trace': 'http://localhost:3000',
},
},
});