var glu = require('pex-glu');
var color = require('pex-color');
var geom = require('pex-geom');
var Context = glu.Context;
var Material = glu.Material;
var Program = glu.Program;
var Color = color.Color;
var Vec3 = geom.Vec3;
var merge = require('merge');
var fs = require('fs');
var FlatToonShadingGLSL = fs.readFileSync(__dirname + '/FlatToonShading.glsl', 'utf8');
function FlatToonShading(uniforms) {
this.gl = Context.currentContext.gl;
var program = new Program(FlatToonShadingGLSL);
var defaults = {
wrap: 1,
pointSize : 1,
lightPos : Vec3.create(10, 20, 30)
};
var uniforms = merge(defaults, uniforms);
Material.call(this, program, uniforms);
}
FlatToonShading.prototype = Object.create(Material.prototype);
module.exports = FlatToonShading;