var glu = require('pex-glu');
var color = require('pex-color');
var Context = glu.Context;
var Material = glu.Material;
var Program = glu.Program;
var Color = color.Color;
var merge = require('merge');
var fs = require('fs');
var MatCapGLSL = fs.readFileSync(__dirname + '/MatCap.glsl', 'utf8');
function MatCap(uniforms) {
this.gl = Context.currentContext;
var program = new Program(MatCapGLSL);
var defaults = {};
uniforms = merge(defaults, uniforms);
Material.call(this, program, uniforms);
}
MatCap.prototype = Object.create(Material.prototype);
module.exports = MatCap;