orbit controls working
This commit is contained in:
parent
f8d865b5cc
commit
69108e4c49
6
main.js
6
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);
|
||||
|
Loading…
Reference in New Issue
Block a user