Skip to content

Instantly share code, notes, and snippets.

@marshallmurphy
Created July 28, 2020 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshallmurphy/52f506a8850706bc145bdd6a7e663d00 to your computer and use it in GitHub Desktop.
Save marshallmurphy/52f506a8850706bc145bdd6a7e663d00 to your computer and use it in GitHub Desktop.
// CAMERA
const camera = new THREE.PerspectiveCamera(100, SCREEN_WIDTH / SCREEN_HEIGHT, 1, 1000);
camera.position.set(30, 5, 35);
// ORBIT CONTROLS
const controls = new THREE.OrbitControls(camera, context.canvas);
controls.target.set(30, 0, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment