glslify-bare
glslify browserify transform
Last updated 5 years ago by jnordberg .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install glslify-bare 
SYNC missed versions from official npm registry.

glslify-bare

browserify transform that compiles .glsl shaders using 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

var src = require('./shader.glsl')

Instead of

var glslify = require('glslify')
var src = glslify(__dirname + '/shader.glsl')

Everything else is the same

Current Tags

  • 1.0.0                                ...           latest (5 years ago)

1 Versions

  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |