(props: ThreeElements['group'])
| 62 | } |
| 63 | |
| 64 | function Apple(props: ThreeElements['group']) { |
| 65 | const { scene } = useGLTF('/apple.gltf') |
| 66 | useFrame((state, delta) => (scene.rotation.x = scene.rotation.y += delta)) |
| 67 | return <primitive object={scene} {...props} /> |
| 68 | } |
| 69 | |
| 70 | const isOrthographicCamera = (def: THREE.Camera): def is THREE.OrthographicCamera => |
| 71 | def && (def as THREE.OrthographicCamera).isOrthographicCamera |
nothing calls this directly
no test coverage detected
searching dependent graphs…