diff --git a/src/App.tsx b/src/App.tsx
index 048e29c..c8d34df 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,7 +1,11 @@
import { Grid, useBVH, useGLTF, CameraControls, AccumulativeShadows, OrbitControls, Stats } from '@react-three/drei'
import { Camera, Canvas, useFrame, useThree, useLoader } from '@react-three/fiber'
+import * as THREE from 'three'
import { useState } from 'react'
+const DEFAULT_NEAR = 0.1
+const DEFAULT_FAR = 5
+
const Scene = () => {
function Floor() {
return (
@@ -14,6 +18,17 @@ const Scene = () => {
const Axes = () => {
return
}
+ const ExampleCameraView = () => {
+ const camera = new THREE.PerspectiveCamera(60, 4 / 3, DEFAULT_NEAR, DEFAULT_FAR)
+ const helper =
+ camera.position.set(0, 5, 0)
+ return (
+
+
+ {helper}
+
+ )
+ }
return (
// Note that we don't need to import anything, All three.js objects will be treated
@@ -26,6 +41,7 @@ const Scene = () => {
+
>