code: function LGraphTextureAverage() {
              this.addInput("Texture", "Texture");
              this.addOutput("tex", "Texture");
              this.addOutput("avg", "vec4");
              this.addOutput("lum", "number");
              this.properties = {
                  use_previous_frame: true,
                  mipmap_offset: 0,
                  low_precision: false
              };
  
              this._uniforms = {
                  u_texture: 0,
                  u_mipmap_offset: this.properties.mipmap_offset
              };
              this._luminance = new Float32Array(4);
          }
docs: Texture Average  *****************************************