mirror of
https://github.com/storytold/spark.git
synced 2026-10-13 23:52:44 +00:00
Replace furry logo
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user