src/drawable/particle-portal.js
/**
   * Update the view, and uniforms pertaining to the view
   * @param  {mat4} viewProject   Camera's combine view and projection matrix
   * @param  {Camera} camera      The camera
   * @return {void}
   */
Update the view, and uniforms pertaining to the view
@param  {mat4} viewProject   Camera's combine view and projection matrix
@param  {Camera} camera      The camera
@return {void}
Update the view and uniforms pertaining to the view @param { mat4 } viewProject Camera ' s combine view and projection matrix @param { Camera } camera The camera @return { void }
updateView(viewProject, camera) {
    super.updateView(viewProject, camera);
    if(camera) {
      let dist = vec3.length(camera.position);
      let scale = Math.pow(dist, 0.2);
      this.uniforms.u_params[3] = scale;
    }
  }
updateView ( viewProject , camera ) { super . updateView ( viewProject , camera ) ; if ( camera ) { let dist = vec3 . length ( camera . position ) ; let scale = Math . pow ( dist , 0.2 ) ; this . uniforms . u_params [ 3 ] = scale ; } }
Update the view, and uniforms pertaining to the view
 @param  {mat4} viewProject   Camera's combine view and projection matrix
 @param  {Camera} camera      The camera
 @return {void}
Update the view and uniforms pertaining to the view @param { mat4 } viewProject Camera ' s combine view and projection matrix @param { Camera } camera The camera @return { void }