|
|
@ -1,6 +1,6 @@
|
|
|
|
var scene = new THREE.Scene();
|
|
|
|
var scene = new THREE.Scene();
|
|
|
|
var camera = new THREE.PerspectiveCamera( 75, window.innerWidth/window.innerHeight, 0.1, 100 );
|
|
|
|
var camera = new THREE.PerspectiveCamera( 75, window.innerWidth/window.innerHeight, 0.1, 100 );
|
|
|
|
|
|
|
|
var canvas = document.getElementById('torusKnot');
|
|
|
|
var renderer = new THREE.WebGLRenderer();
|
|
|
|
var renderer = new THREE.WebGLRenderer();
|
|
|
|
renderer.setSize( window.innerWidth/2, window.innerHeight/2 );
|
|
|
|
renderer.setSize( window.innerWidth/2, window.innerHeight/2 );
|
|
|
|
document.body.appendChild( renderer.domElement );
|
|
|
|
document.body.appendChild( renderer.domElement );
|
|
|
|