Skip to content

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

Open
toaarnio wants to merge 14 commits into
evanw:masterfrom
toaarnio:master
Open

Added GL.Shader.fromURL(vsURL, fsURL) and GL.create({canvas: myCanvas})#10
toaarnio wants to merge 14 commits into
evanw:masterfrom
toaarnio:master

Conversation

@toaarnio

@toaarnio toaarnio commented Oct 1, 2012

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

+1
Add to master branch!

@z3dev

z3dev commented Dec 22, 2016

Copy link
Copy Markdown

+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.

3 participants