src/components/camera.js
function () {
    var camera;
    var el = this.el;

    // Create camera.
    camera = this.camera = new THREE.PerspectiveCamera();
    el.setObject3D('camera', camera);
  }
function () {
    var camera;
    var el = this.el;

    // Create camera.
    camera = this.camera = new THREE.PerspectiveCamera();
    el.setObject3D('camera', camera);
  }
function ( ) { var camera ; var el = this . el ; // Create camera. camera = this . camera = new THREE . PerspectiveCamera ( ) ; el . setObject3D ( 'camera' , camera ) ; }
Initialize three.js camera and add it to the entity.
Add reference from scene to this entity as the camera.
Initialize three . js camera and add it to the entity . Add reference from scene to this entity as the camera .