diff --git a/12/torusKnot.js b/12/torusKnot.js index 862ca9a..66e2e00 100644 --- a/12/torusKnot.js +++ b/12/torusKnot.js @@ -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 } );