Glsl loader for webpack
Glsl loader for webpack2 & webpack3. It support chunks & inspire by ShaderLoader
Getting started
Install:
npm install shader-loader --save-dev
Config webpack:
module:rules:test: /\.$/loader: 'shader-loader'options:glsl:chunkPath:
You can now require your glsl files:
var vertexShader = ;var fragmentShader = ;
if you use $xxx in your shader its replace by the content of xxx.glsl, for example:
void
Learn more about loaders & webpack: http://webpack.github.io/docs/loaders.html
License
MIT (http://www.opensource.org/licenses/mit-license.php)