text: 'use strict';
  
  var Pass = require('../../Pass');
  var vertex = require('../../shaders/vertex/basic.glsl');
  var fragment = require('./brightness-contrast-fs.glsl');
  
  function BrightnessContrastPass(brightness, contrast) {
    Pass.call(this);
  
    this.setShader(vertex, fragment);
  
    this.params.brightness = brightness || 1;
    this.params.contrast = contrast || 1;
  }
  
  module.exports = BrightnessContrastPass;
  
  BrightnessContrastPass.prototype = Object.create(Pass.prototype);
  BrightnessContrastPass.prototype.constructor = BrightnessContrastPass;
  
  BrightnessContrastPass.prototype.run = function(composer) {
    this.shader.uniforms.brightness.value = this.params.brightness;
    this.shader.uniforms.contrast.value = this.params.contrast;
    composer.pass(this.shader);
  };
  