Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Create the scene for the objects
- var scene = new THREE.Scene();
- //Set the camera properties
- var camera = new THREE.PerspectiveCamera( ("field of view"), ("aspect ratio"), ("near plane") ("far plane") );
- //Set the WebGL to render the objects
- var renderer = new THREE.WebGLRenderer();
- renderer.setSize( window.innerWidth, window.innerHeight );
- //Add scene and renderer to the DOM
- document.body.appendChild( renderer.domElement );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement