evanw/lightgl.js — pull request #17 by yelper (2014-01-27 21:36:14+00:00)
Title: adding support for int type in shaders

Currently, if a shader has a uniform of type int, an error will result (GL_INVALID_OPERATION : glUniform1fv: wrong uniform function for type) since all individual values passed to GL.Shaders.uniforms() are assumed to be floats.

I'm overloading on isSampler to make the initial decision. Note that 'isSampler' is now technically 'isIntUniform', but I'll leave that naming convention to you.

This is my first pull request, so let me know if this is helpful or what I should be doing in the future! :) Thanks for this helpful library.