Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jnordberg/glslify-bare
glslify browserify transform for .glsl files
https://github.com/jnordberg/glslify-bare
Last synced: 22 days ago
JSON representation
glslify browserify transform for .glsl files
- Host: GitHub
- URL: https://github.com/jnordberg/glslify-bare
- Owner: jnordberg
- Created: 2016-02-26T16:32:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-06T19:30:06.000Z (about 8 years ago)
- Last Synced: 2024-10-19T04:04:26.962Z (25 days ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 10
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
glslify-bare
============[browserify](https://github.com/substack/node-browserify) transform that compiles .glsl shaders using [glslify](https://github.com/stackgl/glslify).
This module differs from glslify in that it lets you `require('./shader.glsl')` calls directly instead of parsing every file in the browserify transform pipeline searching for calls to `glslify()`.
This makes this transform much more performant than the standard glslify transform but has the drawback of not letting you pass transform options on a per-file basis.
Usage
-----Use
```javascript
var src = require('./shader.glsl')
```Instead of
```javascript
var glslify = require('glslify')
var src = glslify(__dirname + '/shader.glsl')
```Everything else is the same