orbit controls working

This commit is contained in:
Daniel Jones 2024-04-08 15:10:16 -05:00
parent f8d865b5cc
commit 69108e4c49

View File

@ -32,9 +32,13 @@ scene.add(ambientLight, pointLight);
pointLight.position.set(10, 10, 10);
const lightHelper = new THREE.PointLightHelper(pointLight);
scene.add(lightHelper);
const gridHelper = new THREE.GridHelper(200, 50);
scene.add(gridHelper, lightHelper);
const controls = new OrbitControls(camera, renderer.domElement)
function animate(){
requestAnimationFrame(animate);