From 0a2ce484ff66316195f0360e22f2f7a54067cd58 Mon Sep 17 00:00:00 2001 From: "Alexander R. Mcneilly" <115044628+alex-mcneilly@users.noreply.github.com> Date: Fri, 30 May 2025 16:57:00 -0700 Subject: [PATCH] Add VFX Particle Animation Demo (#24) * add snow demo to vfx particle simulation * refactor particle simulation into one file * remove clouds demo link (extraneous) * init clouds example * fix wrapping and clumping for clouds at all wind speeds * move clouds example code to one file * add vfx particle animation clouds demo * add vfx particle animation to examples.html * fix indentation to 2 spaces * fix merge examples.html * add snow demo to vfx particle simulation * refactor particle simulation into one file --- examples.html | 6 +- examples/assets.json | 4 + examples/vfx-particle-animation/index.html | 382 +++++++++++++++++++++ index.html | 4 +- 4 files changed, 392 insertions(+), 4 deletions(-) create mode 100644 examples/vfx-particle-animation/index.html diff --git a/examples.html b/examples.html index 7aec8b2..1a3807c 100644 --- a/examples.html +++ b/examples.html @@ -112,7 +112,7 @@ .example-link.active { background-color: rgba(0, 0, 0, 0.15); - border-left: 4px solid .ffffff; + border-left: 4px solid #ffffff; } .mobile-header { @@ -173,7 +173,7 @@ .mobile-panel .example-link.active { border-left: none; - border-right: 4px solid .ffffff; + border-right: 4px solid #ffffff; } .mobile-panel .header { @@ -206,7 +206,7 @@ codeButton.title = 'View source code for this example on GitHub'; codeButton.innerHTML = ` - + `; document.body.appendChild(codeButton); diff --git a/examples/assets.json b/examples/assets.json index 871ad02..7f95a0a 100644 --- a/examples/assets.json +++ b/examples/assets.json @@ -83,6 +83,10 @@ "url": "https://forge.dev/assets/images/butterfly.png", "directory": "images" }, + "sky.jpeg": { + "url": "https://forge.dev/assets/images/sky.jpeg", + "directory": "images" + }, "furry-logo-pedestal.spz": { "url": "https://forge.dev/assets/splats/furry-logo-pedestal.spz", "directory": "splats" diff --git a/examples/vfx-particle-animation/index.html b/examples/vfx-particle-animation/index.html new file mode 100644 index 0000000..19dfb7c --- /dev/null +++ b/examples/vfx-particle-animation/index.html @@ -0,0 +1,382 @@ + + + + + + Forge • VFX Particle Animation + + + + + + + diff --git a/index.html b/index.html index 7d4aadd..111ed5d 100644 --- a/index.html +++ b/index.html @@ -131,7 +131,8 @@

Examples

-