JSPM

glsl-resolve

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

A wrapper for the "resolve" module that targets GLSL shaders instead of JavaScript

Package Exports

  • glsl-resolve

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-resolve) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

glsl-resolve Flattr this!experimental

A wrapper for the resolve module that targets GLSL shaders instead of JavaScript.

Usage

glsl-resolve

The API is equivalent to resolve for both resolve.async and resolve.sync, with the following exceptions:

  • Node's core modules are excluded.

  • The "main" file for a module is looked for first in a package.json's glslify property, then if main isn't a JavaScript file it'll look there too. Otherwise, it will default to trying index.glsl.

  • Listed in order of priority, the following extensions are resolved instead of .js and .json:

    • .glsl
    • .vert
    • .frag
    • .geom
    • .vs
    • .fs
    • .gs
    • .vsh
    • .fsh
    • .gsh
    • .vshader
    • .fshader
    • .gshader

License

MIT. See LICENSE.md for details.