diff --git a/src/components/GyroscopeExperience.tsx b/src/components/GyroscopeExperience.tsx index 150939e..06a96d4 100644 --- a/src/components/GyroscopeExperience.tsx +++ b/src/components/GyroscopeExperience.tsx @@ -17,9 +17,10 @@ const radians = (deg: number) => (deg * Math.PI) / 180; export const GyroscopeExperience = () => { const [gravity, setGravity] = useState(defaultGravity); - const { gravityMultiplier, cubesCount } = useControls({ + const { gravityMultiplier, cubesCount, debug } = useControls({ gravityMultiplier: 9, cubesCount: 50, + debug: false, }); const cubesRef = @@ -108,7 +109,7 @@ export const GyroscopeExperience = () => { return ( <> - {gravity.toString()} + {debug && gravity.toString()} { shadow-mapSize={2048} /> - +