# systemjs-glsl-plugin

> Loader plugin to let jspm/systemjs use glsl shaders as javascript modules

Latest version **0.1.0** (published 2016-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install systemjs-glsl-plugin
pnpm add systemjs-glsl-plugin
yarn add systemjs-glsl-plugin
bun add systemjs-glsl-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-11-21 |
| First published | 2016-11-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Felipe Figueroa |
| Maintainers | amenadiel |
| Keywords | glsl, opengl, javascript, es6, systemjs, three.js, jspm |

## Links

- npm: https://www.npmjs.com/package/systemjs-glsl-plugin
- Repository: https://github.com/HuasoFoundries/systemjs-glsl-plugin
- Homepage: https://github.com/HuasoFoundries/systemjs-glsl-plugin#readme
- Issues: https://github.com/HuasoFoundries/systemjs-glsl-plugin/issues
- npm.io page: https://npm.io/package/systemjs-glsl-plugin

## Dependencies (1)

- [jspm](https://npm.io/package/jspm.md) ^0.17.0-beta.32

## Recent versions

- 0.1.0 (latest) — 2016-11-21

## README

# systemjs-glsl-plugin

Loader plugin to treat (and build) OpenGL Shading Language (*.glsl) files as javascript modules. Made for `jspm@0.17`

This plugin is, for now, a POC to load *.glsl files (such as the ones found on the [THREE.js source](https://github.com/mrdoob/three.js) ) and let SystemJS treat them as javascript ES6 modules.

I made this loader to import some specific THREE.js submodules into one of my projects, then building a static build with [jspm-cli](https://github.com/jspm/jspm-cli), and getting [Rollup](https://github.com/rollup/rollup) to perform its three shaking magic on the result.

## Installation

Install it with `jspm` using:

```sh
jspm install glsl=npm:systemjs-glsl-plugin
```

## Config

This loader must be enabled in the `meta` section of `jspm.config.js` 

```js
meta: {
  "*.glsl": {
    "defaultExtension": false,
    "loader": "glsl"
  },{
    ...  
  }
}
```

---
_Source: https://npm.io/package/systemjs-glsl-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
