Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. //Create the scene for the objects
  2. var scene = new THREE.Scene();
  3. //Set the camera properties
  4. var camera = new THREE.PerspectiveCamera( ("field of view"), ("aspect ratio"), ("near plane") ("far plane") );
  5. //Set the WebGL to render the objects
  6. var renderer = new THREE.WebGLRenderer();
  7. renderer.setSize( window.innerWidth, window.innerHeight );
  8. //Add scene and renderer to the DOM
  9. document.body.appendChild( renderer.domElement );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement