Last active
March 21, 2019 06:27
-
-
Save gtalarico/358a6cb02db3a1bbe506d01bdfcc752c to your computer and use it in GitHub Desktop.
threejs-vue-template-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/three/index.ks | |
import * as THREE from 'three' | |
window.THREE = THREE | |
require('@/vendor/OrbitControls.js') | |
export { THREE } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/three/OrbitControls.js | |
// Note: file content truncated for display | |
// Be sure to include the entire content from | |
// https://raw.githubusercontent.com/mrdoob/three.js/master/examples/js/controls/OrbitControls.js | |
/** | |
* @author qiao / https://github.com/qiao | |
* @author mrdoob / http://mrdoob.com | |
* @author alteredq / http://alteredqualia.com/ | |
* @author WestLangley / http://github.com/WestLangley | |
* @author erich666 / http://erichaines.com | |
*/ | |
// This set of controls performs orbiting, dollying (zooming), and panning. | |
// Unlike TrackballControls, it maintains the "up" direction object.up (+Y by default). | |
// | |
// Orbit - left mouse / touch: one-finger move | |
// Zoom - middle mouse, or mousewheel / touch: two-finger spread or squish | |
// Pan - right mouse, or left mouse + ctrl/meta/shiftKey, or arrow keys / touch: two-finger move | |
THREE.OrbitControls = function ( object, domElement ) { | |
this.object = object; | |
// Be sure to include the entire content from | |
// https://raw.githubusercontent.com/mrdoob/three.js/master/examples/js/controls/OrbitControls.js | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment