nixers
[JS] A little WebGL shader class - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Development & Graphics (https://nixers.net/forumdisplay.php?fid=7)
+--- Forum: The WWW & Web Development (https://nixers.net/forumdisplay.php?fid=23)
+--- Thread: [JS] A little WebGL shader class (/showthread.php?tid=414)


[JS] A little WebGL shader class - bottomy - 24-02-2013

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-WebGL-JS-Shader-Class](https://github.com/ScrimpyCat/Basic-WebGL-JS-Shader-Class)


RE: [JS] A little WebGL shader class - venam - 24-02-2013

Code:
Could not initialize Tilt, please check the
troubleshooting information available at http://get.webgl.org/troubleshooting
I had some nightmare with webgl making my browser slow and not responsive. Thus I disabled it, and the browsing is less ressource consumming.


RE: [JS] A little WebGL shader class - jmbi - 24-02-2013

This is cool! GLSL for the win!


RE: [JS] A little WebGL shader class - bottomy - 24-02-2013

(24-02-2013, 04:24 PM)venam Wrote:
Code:
Could not initialize Tilt, please check the
troubleshooting information available at http://get.webgl.org/troubleshooting
I had some nightmare with webgl making my browser slow and not responsive. Thus I disabled it, and the browsing is less ressource consumming.

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