feat(web): tint objects by their ColorDiffuse

Model ColorDiffuse in shared types and multiply each viewer's material color by the per-object tint, including textured faces and loaded custom models.
This commit is contained in:
2026-08-08 22:38:12 +08:00
parent a6e9d2dd07
commit 82a81c9c1a
7 changed files with 114 additions and 21 deletions
+3 -1
View File
@@ -110,7 +110,9 @@ view and the full-setup view.
caches
- `apps/web/src/components/viewers/transform.ts` — new TTS→three.js placement
conversion
- `packages/shared/src/types.ts` — add `TTSObjectTransform`
- `apps/web/src/components/viewers/sharedResources.ts``objectTint`/
`tintedColor` helpers for the per-object `ColorDiffuse` tint
- `packages/shared/src/types.ts` — add `TTSObjectTransform` and `ColorDiffuse`
- `apps/web/src/pages/FullSetupPage.tsx` — new
- `apps/web/src/App.tsx` — route
- `apps/web/src/pages/ModPage.tsx` — nav link