Permalink
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 298 Bytes
var fs = require('fs');
var Vert = fs.readFileSync(__dirname + '/glsl/MatCap.vert', 'utf8');
var Frag = fs.readFileSync(__dirname + '/glsl/MatCap.frag', 'utf8');
module.exports = function(ctx) {
return ctx.createProgram(Vert, Frag);
}
module.exports.Vert = Vert;
module.exports.Frag = Frag;