|
@@ -144,8 +144,16 @@ const syncCameraToFrame = (frameIndex: number) => {
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
controls.update();
|
|
controls.update();
|
|
|
|
|
+
|
|
|
|
|
+ // Sync texture for Three.js billboard
|
|
|
|
|
+ const activeImg = preloadedImages.value[frameIndex];
|
|
|
|
|
+ if (activeImg && billboardTexture) {
|
|
|
|
|
+ billboardTexture.image = activeImg;
|
|
|
|
|
+ billboardTexture.needsUpdate = true;
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+
|
|
|
// Helper: match camera rotation back to closest frame texture
|
|
// Helper: match camera rotation back to closest frame texture
|
|
|
const matchCameraToFrame = () => {
|
|
const matchCameraToFrame = () => {
|
|
|
if (!camera || !projectMetadata.value) return;
|
|
if (!camera || !projectMetadata.value) return;
|