lbry-desktop/src/renderer/component/viewers/threeViewer/internal/three.js
2018-07-19 00:45:32 -06:00

10 lines
401 B
JavaScript

import * as THREE from 'three';
// Currently it's not possible to import the files within the "examples/js" directory.
// Fix: https://github.com/mrdoob/three.js/issues/9562#issuecomment-383390251
global.THREE = THREE;
require('three/examples/js/controls/OrbitControls');
require('three/examples/js/loaders/OBJLoader');
require('three/examples/js/loaders/STLLoader');
module.exports = global.THREE;