|
|
|
@ -3,7 +3,7 @@ var camera = new THREE.PerspectiveCamera( 75, window.innerWidth/window.innerHeig
|
|
|
|
|
var canvas = document.getElementById('torusKnot');
|
|
|
|
|
var renderer = new THREE.WebGLRenderer();
|
|
|
|
|
renderer.setSize( window.innerWidth/2, window.innerHeight/2 );
|
|
|
|
|
document.body.appendChild(canvas);
|
|
|
|
|
document.body.appendChild(renderer.domElement);
|
|
|
|
|
|
|
|
|
|
var geometry = new THREE.TorusKnotGeometry( 10, 3, 100, 16 );
|
|
|
|
|
var material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } );
|
|
|
|
|