mirror of
https://github.com/storytold/spark.git
synced 2026-10-28 09:08:44 +00:00
Replace furry logo
This commit is contained in:
@@ -83,12 +83,8 @@
|
|||||||
"url": "https://forge.dev/assets/images/butterfly.png",
|
"url": "https://forge.dev/assets/images/butterfly.png",
|
||||||
"directory": "images"
|
"directory": "images"
|
||||||
},
|
},
|
||||||
"furry.spz": {
|
"furry-logo-pedestal.spz": {
|
||||||
"url": "https://forge.dev/assets/splats/furry.spz",
|
"url": "https://forge.dev/assets/splats/furry-logo-pedestal.spz",
|
||||||
"directory": "splats"
|
|
||||||
},
|
|
||||||
"pedestal.spz": {
|
|
||||||
"url": "https://forge.dev/assets/splats/pedestal.spz",
|
|
||||||
"directory": "splats"
|
"directory": "splats"
|
||||||
},
|
},
|
||||||
"cat.spz": {
|
"cat.spz": {
|
||||||
|
|||||||
@@ -43,18 +43,11 @@
|
|||||||
|
|
||||||
const ASSETS = [
|
const ASSETS = [
|
||||||
{ file: "butterfly.spz", scale: 1.2 },
|
{ 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 },
|
{ file: "forge.spz", scale: 1 },
|
||||||
];
|
];
|
||||||
const assets = [];
|
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) {
|
for (let asset of ASSETS) {
|
||||||
const splatURL = await getAssetFileURL(asset.file);
|
const splatURL = await getAssetFileURL(asset.file);
|
||||||
const splat = new SplatMesh({ url: splatURL });
|
const splat = new SplatMesh({ url: splatURL });
|
||||||
@@ -99,7 +92,6 @@
|
|||||||
// fade in
|
// fade in
|
||||||
if (fadeIn !== null) {
|
if (fadeIn !== null) {
|
||||||
fadeIn += dt;
|
fadeIn += dt;
|
||||||
pedestalSplat.opacity = ASSETS[current].file === "furry.spz" ? 1 : 0;
|
|
||||||
if (fadeIn < FADE_TIME) {
|
if (fadeIn < FADE_TIME) {
|
||||||
assets[current].opacity = easeInOutSine(fadeIn / FADE_TIME);
|
assets[current].opacity = easeInOutSine(fadeIn / FADE_TIME);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user