From 340d6513792f87351979222d1fc2556077a39fbb Mon Sep 17 00:00:00 2001
From: "H. E." <6037756+rndexe@users.noreply.github.com>
Date: Thu, 8 Aug 2024 21:07:43 +0530
Subject: [PATCH] Fix nextjs-prism demo (#59)
* Fix nextjs-prism demo
* Fix spotlight intensity and decay
---
demos/nextjs-prism/src/App.jsx | 8 ++++----
demos/nextjs-prism/src/components/Rainbow.jsx | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/demos/nextjs-prism/src/App.jsx b/demos/nextjs-prism/src/App.jsx
index 53869b7d..f42e6d30 100755
--- a/demos/nextjs-prism/src/App.jsx
+++ b/demos/nextjs-prism/src/App.jsx
@@ -83,10 +83,10 @@ function Scene() {
<>
{/* Lights */}
-
-
-
-
+
+
+
+
{/* Caption */}
diff --git a/demos/nextjs-prism/src/components/Rainbow.jsx b/demos/nextjs-prism/src/components/Rainbow.jsx
index 21b154f9..0472d038 100755
--- a/demos/nextjs-prism/src/components/Rainbow.jsx
+++ b/demos/nextjs-prism/src/components/Rainbow.jsx
@@ -98,7 +98,7 @@ const RainbowMaterial = shaderMaterial(
vec3 co = c / iridescence(uv.x * 0.5 * 3.14159, 1.0 - uv.y + time / 10.0) / 20.0;
gl_FragColor = vec4(area * co * l * brightness * emissiveIntensity, 1.0);
if (gl_FragColor.r + gl_FragColor.g + gl_FragColor.b < 0.01) discard;
- #include
+ #include
}`
)