Skip to content

adding support for int type in shaders #17

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

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

Conversation

yelper
Copy link

@yelper yelper commented Jan 27, 2014

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.

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.

1 participant