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 ShowDepthGLSL = fs.readFileSync(__dirname + '/ShowDepth.glsl', 'utf8');
function ShowDepth(uniforms) {
this.gl = Context.currentContext;
var program = new Program(ShowDepthGLSL);
var defaults = {
near: 0,
far: 10
};
uniforms = merge(defaults, uniforms);
Material.call(this, program, uniforms);
}
ShowDepth.prototype = Object.create(Material.prototype);
module.exports = ShowDepth;