[JS] A little WebGL shader class - The WWW
Users browsing this thread: 2 Guest(s)
|
|||
I decided to take a little break from what I was working on yesterday (spent most of the day fixing bugs and optimizing for my game so got kind of bored) and decided to finish off this old project.
It's not that full featured of a shader class, but the main point of it was to expose the attributes and uniforms of your GLSL programs, as actual properties in JS. So you can access those variables of your GLSL program just like you would in the GLSL program itself. So not sure how many WebGL guys there are here, but hopefully some can test it out. I doubt it's ready for actual usage as I only did a few tests so there's likely some problems with it. [https://github.com/ScrimpyCat/Basic-WebG...der-Class) |
|||
|
|||
Code: Could not initialize Tilt, please check the |
|||
|
|||
This is cool! GLSL for the win!
|
|||
|
|||
(24-02-2013, 04:24 PM)venam Wrote: That seems odd if it was for general browsing. Since there aren't that many sites using WebGL, so sounds like your browser has some things set up for WebGL usage enabled at all times. Maybe you could report it as a bug for your browser if it's a big issue. But I have WebGL disabled at all times too, only enable it whenever I need it (much like other browser features or plugins). |
|||