diff --git a/main.js b/main.js index 900b28f..b62b7a4 100644 --- a/main.js +++ b/main.js @@ -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);