function init() {
  
  powerField = document.getElementById('power');
  
  scene = new THREE.Scene();
  scene.fog = new THREE.Fog(0x652e37, 350, 500);

  HEIGHT = window.innerHeight;
  WIDTH = window.innerWidth;
  aspectRatio = WIDTH / HEIGHT;
  fieldOfView = 60;
  nearPlane = 1;
  farPlane = 2000;
  camera = new THREE.PerspectiveCamera(
    fieldOfView,
    aspectRatio,
    nearPlane,
    farPlane);
  camera.position.x = -300;
  camera.position.z = 300;
  camera.position.y = 100;
  camera.lookAt(new THREE.Vector3(0, 0, 0));
  renderer = new THREE.WebGLRenderer({
    alpha: true,
    antialias: true
  });
  renderer.setSize(WIDTH, HEIGHT);
  renderer.shadowMapEnabled = true;
  container = document.getElementById('world');
  container.appendChild(renderer.domElement);
  windowHalfX = WIDTH / 2;
  windowHalfY = HEIGHT / 2;
  window.addEventListener('resize', onWindowResize, false);
  document.addEventListener('mouseup', handleMouseUp, false);
  document.addEventListener('touchend', handleTouchEnd, false);
  //*
  controls = new THREE.OrbitControls(camera, renderer.domElement);
  controls.minPolarAngle = -Math.PI / 2; 
  controls.maxPolarAngle = Math.PI / 2;
  controls.noZoom = true;
  controls.noPan = true;
  //*/
}
//INIT THREE JS, SCREEN AND MOUSE EVENTS
INIT THREE JS, SCREEN AND MOUSE EVENTS
INIT THREE JS SCREEN AND MOUSE EVENTS
function init() {
  powerField = document.getElementById('power');
  scene = new THREE.Scene();
  scene.fog = new THREE.Fog(0x652e37, 350, 500);
  HEIGHT = window.innerHeight;
  WIDTH = window.innerWidth;
  aspectRatio = WIDTH / HEIGHT;
  fieldOfView = 60;
  nearPlane = 1;
  farPlane = 2000;
  camera = new THREE.PerspectiveCamera(
    fieldOfView,
    aspectRatio,
    nearPlane,
    farPlane);
  camera.position.x = -300;
  camera.position.z = 300;
  camera.position.y = 100;
  camera.lookAt(new THREE.Vector3(0, 0, 0));
  renderer = new THREE.WebGLRenderer({
    alpha: true,
    antialias: true
  });
  renderer.setSize(WIDTH, HEIGHT);
  renderer.shadowMapEnabled = true;
  container = document.getElementById('world');
  container.appendChild(renderer.domElement);
  windowHalfX = WIDTH / 2;
  windowHalfY = HEIGHT / 2;
  window.addEventListener('resize', onWindowResize, false);
  document.addEventListener('mouseup', handleMouseUp, false);
  document.addEventListener('touchend', handleTouchEnd, false);
  controls = new THREE.OrbitControls(camera, renderer.domElement);
  controls.minPolarAngle = -Math.PI / 2; 
  controls.maxPolarAngle = Math.PI / 2;
  controls.noZoom = true;
  controls.noPan = true;
  /
}
function init ( ) { powerField = document . getElementById ( 'power' ) ; scene = new THREE . Scene ( ) ; scene . fog = new THREE . Fog ( 0x652e37 , 350 , 500 ) ; HEIGHT = window . innerHeight ; WIDTH = window . innerWidth ; aspectRatio = WIDTH / HEIGHT ; fieldOfView = 60 ; nearPlane = 1 ; farPlane = 2000 ; camera = new THREE . PerspectiveCamera ( fieldOfView , aspectRatio , nearPlane , farPlane ) ; camera . position . x = - 300 ; camera . position . z = 300 ; camera . position . y = 100 ; camera . lookAt ( new THREE . Vector3 ( 0 , 0 , 0 ) ) ; renderer = new THREE . WebGLRenderer ( { alpha : true , antialias : true } ) ; renderer . setSize ( WIDTH , HEIGHT ) ; renderer . shadowMapEnabled = true ; container = document . getElementById ( 'world' ) ; container . appendChild ( renderer . domElement ) ; windowHalfX = WIDTH / 2 ; windowHalfY = HEIGHT / 2 ; window . addEventListener ( 'resize' , onWindowResize , false ) ; document . addEventListener ( 'mouseup' , handleMouseUp , false ) ; document . addEventListener ( 'touchend' , handleTouchEnd , false ) ; controls = new THREE . OrbitControls ( camera , renderer . domElement ) ; controls . minPolarAngle = - Math . PI / 2 ; controls . maxPolarAngle = Math . PI / 2 ; controls . noZoom = true ; controls . noPan = true ; }
INIT THREE JS, SCREEN AND MOUSE EVENTS
INIT THREE JS SCREEN AND MOUSE EVENTS
//* //*/