glslify-bundle

WebJar for glslify-bundle

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

glslify-bundle
Last Version

Last Version

5.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

glslify-bundle
WebJar for glslify-bundle
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/glslify/glslify-bundle

Download glslify-bundle

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/glslify-bundle/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>glslify-bundle</artifactId>
    <version>5.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/glslify-bundle/
implementation 'org.webjars.npm:glslify-bundle:5.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/glslify-bundle/
implementation ("org.webjars.npm:glslify-bundle:5.1.1")
'org.webjars.npm:glslify-bundle:jar:5.1.1'
<dependency org="org.webjars.npm" name="glslify-bundle" rev="5.1.1">
  <artifact name="glslify-bundle" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='glslify-bundle', version='5.1.1')
)
libraryDependencies += "org.webjars.npm" % "glslify-bundle" % "5.1.1"
[org.webjars.npm/glslify-bundle "5.1.1"]

Dependencies

compile (10)

Group / Artifact Type Version
org.webjars.npm : glsl-tokenizer jar [2.0.2,3)
org.webjars.npm : glsl-token-scope jar [1.1.1,2)
org.webjars.npm : murmurhash-js jar [1.0.0,2)
org.webjars.npm » glsl-token-whitespace-trim jar [1.0.0,2)
org.webjars.npm : glsl-token-depth jar [1.1.1,2)
org.webjars.npm : glsl-inject-defines jar [1.0.1,2)
org.webjars.npm : glsl-token-defines jar [1.0.0,2)
org.webjars.npm : shallow-copy jar [0.0.1]
org.webjars.npm : glsl-token-descope jar [1.0.2,2)
org.webjars.npm : glsl-token-string jar [1.0.1,2)

Project Modules

There are no modules declared in this project.

glslify-bundle

experimental

Bundle a glslify-deps dependency tree into a GLSL source string.

This has been separated from glslify-deps such that you can prebundle a dependency tree server-side, but then still modify shader file contents in a browser.

Usage

NPM

source = bundle(deps)

Takes the output object from glslify-deps and returns a bundled GLSL string.

var bundle = require('glslify-bundle')
var deps   = require('glslify-deps')
var path   = require('path')

var file = path.join(__dirname, 'index.glsl')

deps().add(file, function(err, tree) {
  if (err) throw err

  var glsl = bundle(tree)

  console.log(glsl)
})

Contributing

See stackgl/contributing for details.

License

MIT. See LICENSE.md for details.

org.webjars.npm

Versions

Version
5.1.1
5.0.0