JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q37312F
  • License MIT

Package Exports

  • glsl-simple-include

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (glsl-simple-include) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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);