Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wizgrav committed Jan 27, 2017
1 parent 8c3a72f commit f5615b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -17,7 +17,7 @@ For the unminified version for local development (with source maps), include thi

### Instructions ###

Clubber tool can export its state using long urls that contain a full serialization of its config. Patches made with the tool provide up to 4 modulators using processors defined in the glsl fields. Glsl makes sense for applying the vectorization technique described in the clubber readme but limits the reuse of the modulators themselves. Clubberize utilizes the awesome [glsl-transpiler](https://github.com/stackgl/glsl-transpiler) to trans compile the rhythm detecting glsl to pure js. A patch from the tool is wrapped in a closure that would be called every render frame to provide the current values of the 4 modulators for it's patch in the form of a 4 element array. The values can then be used in js apps, without the need for webgl.
Clubber tool can export its state using long urls that contain a full serialization of its config. Patches made with the tool provide up to 4 modulators using processors defined in the glsl fields. Glsl makes sense for applying the vectorization technique described in the clubber readme but limits the reuse of the modulators themselves. Clubberize utilizes the awesome [glsl-transpiler](https://github.com/stackgl/glsl-transpiler) to trans compile the rhythm detecting glsl to pure js. A patch from the tool is wrapped in a closure that should be called every render frame to provide the current values of the 4 modulators for the patch in the form of a 4 element array of floats. These values can then be used in js apps, without the need for webgl.

[You can check an example in codepen](http://codepen.io/wizgrav/pen/PWKNmg)

Expand All @@ -37,7 +37,7 @@ function render (time) {
// Clubber update is separate so we can have one parent and multiple modulator packs
clubber.update();

// Time is passed as seconds to simulate shadertoy's iGlobalTime uniform.
// Time is passed as seconds to simulate shadertoy's iGlobalTime uniform, in case it is used by modulators.
var data = mods(time/1000);

// All 4 modulators will be contained in the data 4 element array.
Expand Down

0 comments on commit f5615b4

Please sign in to comment.