grunt-glsl-optimizer
v1.0.1
Published
Optimize your GLSL shaders!
Downloads
3
Maintainers
Readme
grunt-glsl-optimizer
Optimize your GLSL shaders!
Based on glslify-optimize
Install
npm install grunt-glsl-optimizer --save-dev
Example Gruntfile.js
module.exports = function (grunt) {
"use strict";
grunt.initConfig({
glslOptimizer : {
dist : {
files : [
{
kind : "fragment",
src : "src/video/webgl/fragment.glsl",
dest : "build/fragment.glsl"
},
{
kind : "vertex",
src : "src/video/webgl/vertex.glsl",
dest : "build/vertex.glsl"
}
]
}
}
});
grunt.loadNpmTasks("grunt-glsl-optimizer");
grunt.registerTask("default", "glslOptimizer");
};