-
Is there a way to change the camera type on the fly? I initialized the camera type as Orthographic and want to switch it to Perspective, but seems not to work with |
Beta Was this translation helpful? Give feedback.
Answered by
drcmda
May 22, 2021
Replies: 1 comment 1 reply
-
most props on the canvas are one shot initialisations. they're not reactive. import { PerspectiveCamera, OrthographicCamera } from '@react-three/drei'
<PerspectiveCamera makeDefault={!isOrthographic} />
<OrthographicCamera makeDefault={isOrthographic} /> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
philxia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
most props on the canvas are one shot initialisations. they're not reactive.