src/drawable/shield-effect.js
/**
   * Updates the default uniforms
   *
   * Note: these are nothing like what's in the apk, just some functions that
   * happen to look kinda sorta nice
   * @param  {Number} delta Time since last frame
   * @return {Boolean}      Returns true to continue the animation.
   */
Updates the default uniforms
Note: these are nothing like what's in the apk, just some functions that
happen to look kinda sorta nice
@param  {Number} delta Time since last frame
@return {Boolean}      Returns true to continue the animation.
Updates the default uniforms Note : these are nothing like what ' s in the apk just some functions that happen to look kinda sorta nice @param { Number } delta Time since last frame @return { Boolean } Returns true to continue the animation .
updateTime(delta) {
    var ret = super.updateTime(delta);
    var inc = this.elapsed / 10000;
    this.uniforms.u_rampTargetInvWidth[0] = -(inc - Math.floor(inc));
    this.uniforms.u_rampTargetInvWidth[1] = Math.sin((inc - Math.floor(inc)) * Math.PI / 2);
    return ret;
  }
updateTime ( delta ) { var ret = super . updateTime ( delta ) ; var inc = this . elapsed / 10000 ; this . uniforms . u_rampTargetInvWidth [ 0 ] = - ( inc - Math . floor ( inc ) ) ; this . uniforms . u_rampTargetInvWidth [ 1 ] = Math . sin ( ( inc - Math . floor ( inc ) ) * Math . PI / 2 ) ; return ret ; }
Updates the default uniforms
 Note: these are nothing like what's in the apk, just some functions that
 happen to look kinda sorta nice
 @param  {Number} delta Time since last frame
 @return {Boolean}      Returns true to continue the animation.
Updates the default uniforms Note : these are nothing like what ' s in the apk just some functions that happen to look kinda sorta nice @param { Number } delta Time since last frame @return { Boolean } Returns true to continue the animation .
// this is so shitty, but again, this java decompiler really doesn't like the file. // This is nothing close to what's 'supposed' to happen in these uniforms, just a hack // that's kinda sorta like the actual thing. // u_contributionsAndAlpha?