glsl-simple-include
v1.1.2
Published
Preprocessor for a simple "#pragma include" directive.
Downloads
10
Readme
glsl-simple-include
Preprocessor for a simple "#pragma include" directive.
npm install glsl-simple-include --save
#pragma include "/path/to/file.glsl"
var GlslSimpleInclude = require('glsl-simple-include');
var readTextFile = require('read-text-file');
var path = require('path');
var processPromise = GlslSimpleInclude.processIncludes(
readTextFile.read,
path,
"/path/to/file.glsl",
null);