コメント |
@DIV
USER = {};
USER.camera = null;
USER.scene = null;
USER.renderer = null;
USER.controls = null;
USER.animate = function () {
requestAnimationFrame( USER.animate );
USER.controls.update();
}
USER.render = function() {
USER.renderer.render( USER.scene, USER.camera );
}
USER.orbit = function() {
USER.controls = new THREE.OrbitControls( USER.camera );
USER.controls.addEventListener( 'change', USER.render );
}
@END |