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
+2
View File
@@ -30,6 +30,8 @@ export interface TTSObject {
Parent?: TTSObject;
/** Placement in the TTS world (position, rotation, scale). */
Transform?: TTSObjectTransform;
/** Tint color (01 per channel) applied to the object's base color. */
ColorDiffuse?: { r: number; g: number; b: number };
CustomPDF?: {
PDFUrl: string;