Replace furry logo

This commit is contained in:
Diego Marcos Segura
2025-05-28 17:26:32 -07:00
parent 625052f68c
commit f09b8ef468
2 changed files with 3 additions and 15 deletions
+2 -6
View File
@@ -83,12 +83,8 @@
"url": "https://forge.dev/assets/images/butterfly.png",
"directory": "images"
},
"furry.spz": {
"url": "https://forge.dev/assets/splats/furry.spz",
"directory": "splats"
},
"pedestal.spz": {
"url": "https://forge.dev/assets/splats/pedestal.spz",
"furry-logo-pedestal.spz": {
"url": "https://forge.dev/assets/splats/furry-logo-pedestal.spz",
"directory": "splats"
},
"cat.spz": {
+1 -9
View File
@@ -43,18 +43,11 @@
const ASSETS = [
{ file: "butterfly.spz", scale: 1.2 },
{ file: "furry.spz", scale: 0.45 },
{ file: "furry-logo-pedestal.spz", scale: 0.45 },
{ file: "forge.spz", scale: 1 },
];
const assets = [];
const pedestalURL = await getAssetFileURL("pedestal.spz");
const pedestalSplat = new SplatMesh({ url: pedestalURL });
pedestalSplat.scale.set(0.4, 0.4, 0.4);
pedestalSplat.position.set(0, -2.25, -3);
pedestalSplat.opacity = 0.0;
scene.add(pedestalSplat);
for (let asset of ASSETS) {
const splatURL = await getAssetFileURL(asset.file);
const splat = new SplatMesh({ url: splatURL });
@@ -99,7 +92,6 @@
// fade in
if (fadeIn !== null) {
fadeIn += dt;
pedestalSplat.opacity = ASSETS[current].file === "furry.spz" ? 1 : 0;
if (fadeIn < FADE_TIME) {
assets[current].opacity = easeInOutSine(fadeIn / FADE_TIME);
} else {