src/drawable/link.js
/**
   * Updates the camera transforms for the link drawables
   * @param  {mat4}   viewProject Combined view and project matrix
   * @param  {Camera} camera      The camera
   * @return {void}
   */
Updates the camera transforms for the link drawables
@param  {mat4}   viewProject Combined view and project matrix
@param  {Camera} camera      The camera
@return {void}
Updates the camera transforms for the link drawables @param { mat4 } viewProject Combined view and project matrix @param { Camera } camera The camera @return { void }
updateView(viewProject, camera) {
    super.updateView(viewProject, camera);
    if(camera) {
      var rot = mat3.fromMat4(mat3.create(), camera.view);
      var q = quat.fromMat3(quat.create(), rot);
      var fwd = vec3.transformQuat(vec3.create(), vec3.fromValues(0, 0, -1), q);
      vec3.normalize(fwd, fwd);
      this.uniforms.u_cameraFwd = fwd;
    }
  }
updateView ( viewProject , camera ) { super . updateView ( viewProject , camera ) ; if ( camera ) { var rot = mat3 . fromMat4 ( mat3 . create ( ) , camera . view ) ; var q = quat . fromMat3 ( quat . create ( ) , rot ) ; var fwd = vec3 . transformQuat ( vec3 . create ( ) , vec3 . fromValues ( 0 , 0 , - 1 ) , q ) ; vec3 . normalize ( fwd , fwd ) ; this . uniforms . u_cameraFwd = fwd ; } }
Updates the camera transforms for the link drawables
 @param  {mat4}   viewProject Combined view and project matrix
 @param  {Camera} camera      The camera
 @return {void}
Updates the camera transforms for the link drawables @param { mat4 } viewProject Combined view and project matrix @param { Camera } camera The camera @return { void }