From e36b553611481be829a95233568a271f0c5471dd Mon Sep 17 00:00:00 2001 From: Andreas Sundquist Date: Fri, 20 Jun 2025 13:15:14 -0700 Subject: [PATCH] Add GLSL inline shader code injection example (#56) * Add examples/glsl and link into index.html and examples.html. * Add comment to example defining struct Gsplat. * Adjust tab size formatting to 2 --- examples.html | 1 + examples/glsl/index.html | 125 +++++++++++++++++++++++++++++++++++++++ index.html | 1 + src/index.ts | 1 + 4 files changed, 128 insertions(+) create mode 100644 examples/glsl/index.html diff --git a/examples.html b/examples.html index 8fa5074..4896327 100644 --- a/examples.html +++ b/examples.html @@ -371,6 +371,7 @@ Particle Animation Particle Simulation WebXR + GLSL Shaders Editor
diff --git a/examples/glsl/index.html b/examples/glsl/index.html new file mode 100644 index 0000000..5cca980 --- /dev/null +++ b/examples/glsl/index.html @@ -0,0 +1,125 @@ + + + + + + + Spark • GLSL Shaders + + + + + + + + + diff --git a/index.html b/index.html index 07fe9cd..d294b91 100644 --- a/index.html +++ b/index.html @@ -143,6 +143,7 @@
  • Particle Animation
  • Particle Simulation
  • WebXR
  • +
  • GLSL Shaders
  • Editor
  • Viewer
  • diff --git a/src/index.ts b/src/index.ts index d82d370..9a3f614 100644 --- a/src/index.ts +++ b/src/index.ts @@ -48,6 +48,7 @@ export { } from "./splatConstructors"; export * as generators from "./generators"; +export * as modifiers from "./modifiers"; export { VRButton } from "./vrButton"; export {