constructor(attrs = {}) {
    super(attrs)
    this.layerClass = 'Flatten'

    // GPU setup
    if (this.gpu) {
      this.flattenProgram = webgl2.compileProgram(flattenProgramSource)
      this.flattenFragmentsProgram = webgl2.compileProgram(flattenFragmentsProgramSource)
    }
  }
Creates a Flatten layer

@param {Object} [attrs] - layer config attributes