pex-gl / pex-rfc

Requests for comments related to the pex library
2 stars 0 forks source link

Move to glslify #6

Closed vorg closed 6 years ago

vorg commented 9 years ago

Now with glslify-promise nothing is stopping us from incorporating glslify and shader modularity into pex.

Before there was problem that glslify would return a stream to be transformed by browserify into static string but now with glslify-promise on the node side (in Plask) it can return a Promise that Program can handle in both environments (Plask & Browser).

var program = new Program(
    glslify(__dirname + '/PBR.vert'),
    glslify(__dirname + '/PBR.frag')
  );