Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build step #19

Open
milcktoast opened this issue Jun 15, 2015 · 1 comment
Open

Add build step #19

milcktoast opened this issue Jun 15, 2015 · 1 comment

Comments

@milcktoast
Copy link

To make development of features easier, it would be good to add a build step using Grunt or similar.
I could put work into this if there is interest, I would propose:

  • Breaking passes and discreet classes into separate files (concatenated on build)
  • Concatenate shader code into main library file for distributable build to reduce http requests (current minefield example makes over 40 requests just for shaders).
@spite
Copy link
Owner

spite commented Jun 15, 2015

That's a great idea. I've wanted to tackle the problem of the many sources, and how to make it modular and compile just what's needed. A Grunt task could very well be the solution.

Concatenating Wagner's base and the different Passes would be straightforward. What is a bit more complex to solve, I think, it's how to compile all different vertex and fragment shaders sources. There's .glsl files in /vertex-shaders and in /fragment-shaders, and other sources can be provided when creating a Pass.

Any idea on a structure to allow to easily load source files when developing, and merge them all for the code in production?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants