Skip to content

Commit

Permalink
Update Rainbow.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlightnexus authored Oct 1, 2023
1 parent 7dd9569 commit deb6ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/interactivePrism/Rainbow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const Rainbow = forwardRef(
const material = useRef(null);
const { width, height } = useThree((state) => state.viewport);
// calculate the maximum length the rainbow has to have to reach all screen corners
const length = (Math.hypot(width, height) + 0.5)/1.2; // add 1.5 to due motion of the rainbow
const length = (Math.hypot(width, height) + 0.5)/1; // add 1.5 to due motion of the rainbow
useFrame((state, delta) => {
// Only update if material.current.speed is not zero
if (material.current.speed !== 0) {
Expand Down

0 comments on commit deb6ee3

Please sign in to comment.