提交 89f143ee 编写于 作者: P Paul Masson 提交者: GitHub

Update render and comments

上级 15950876
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
var camera, controls, scene, renderer; var camera, controls, scene, renderer;
init(); init();
render(); // remove when using next line for animation loop (requestAnimationFrame)
//animate(); //animate();
function init() { function init() {
...@@ -72,7 +73,7 @@ ...@@ -72,7 +73,7 @@
camera.position.z = 500; camera.position.z = 500;
controls = new THREE.OrbitControls( camera, renderer.domElement ); controls = new THREE.OrbitControls( camera, renderer.domElement );
controls.addEventListener( 'change', render ); // remove when using animation loop (requestAnimationFrame) controls.addEventListener( 'change', render ); // remove when using animation loop
// enable animation loop when using damping or autorotation // enable animation loop when using damping or autorotation
//controls.enableDamping = true; //controls.enableDamping = true;
//controls.dampingFactor = 0.25; //controls.dampingFactor = 0.25;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册