Skip to content

Commit

Permalink
Fix spotlight intensity and decay
Browse files Browse the repository at this point in the history
  • Loading branch information
rndexe committed Aug 8, 2024
1 parent 80a0bba commit fff26b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demos/nextjs-prism/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ function Scene() {
<>
{/* Lights */}
<ambientLight ref={ambient} intensity={0} />
<pointLight position={[10, -10, 0]} intensity={0.05} />
<pointLight position={[0, 10, 0]} intensity={0.05} />
<pointLight position={[-10, 0, 0]} intensity={0.05} />
<spotLight ref={spot} intensity={1} distance={7} angle={1} penumbra={1} position={[0, 0, 1]} />
<pointLight position={[10, -10, 0]} intensity={0.05 * Math.PI} decay={0}/>
<pointLight position={[0, 10, 0]} intensity={0.05 * Math.PI} decay={0}/>
<pointLight position={[-10, 0, 0]} intensity={0.05 * Math.PI} decay={0} />
<spotLight ref={spot} intensity={Math.PI} decay={0} distance={7} angle={1} penumbra={1} position={[0, 0, 1]} />
{/* Caption */}
<Center top bottom position={[0, 2, 0]}>
<Text3D size={0.7} letterSpacing={-0.05} height={0.05} font={inter}>
Expand Down

0 comments on commit fff26b7

Please sign in to comment.