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

Added GL.Shader.fromURL(vsURL, fsURL) and GL.create({canvas: myCanvas}) #10

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

toaarnio
Copy link
Contributor

@toaarnio toaarnio commented Oct 1, 2012

I like to put my shaders into separate files and load them via XHR, so I added a Shader factory method for that. It's currently limited to synchronous XHR, which is of course not good performance-wise if you have lots of shaders, but it's a start.

Also added the ability to pass a pre-existing canvas to GL.create(), which I've found convenient.

@rpsirois
Copy link
Contributor

+1
Add to master branch!

@z3dev
Copy link

z3dev commented Dec 22, 2016

+1
Please merge

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

Successfully merging this pull request may close these issues.

None yet

3 participants