release() {
    Logger.module('ENGINE').log('FX.release');
    this.reset();

    cc.director.getScheduler().unscheduleUpdateForTarget(this);

    this.batchLights.release();
    this.batchShadowCastingLights.release();

    this.passes.cache.release();
    this.passes.screen.release();
    this.passes.blurComposite.release();
    this.passes.surfaceA.release();
    this.passes.surfaceB.release();
    this.passes.depth.release();
    this.passes.highpass.release();
    this.passes.blur.release();
    this.passes.bloom.release();
    this.passes.bloomCompositeA.release();
    this.passes.bloomCompositeB.release();
    this.passes.radialBlur.release();
  }
Resets and releases/deallocates all FX properties and framebuffers. Use this when switching shutting down.