Skip to content
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

Warn/Error on identical input variables #23

Open
sgrove opened this issue Jun 23, 2015 · 0 comments
Open

Warn/Error on identical input variables #23

sgrove opened this issue Jun 23, 2015 · 0 comments

Comments

@sgrove
Copy link
Contributor

sgrove commented Jun 23, 2015

This one is tough, and may not be easily solvable, but I just lost a lot of time to copy/pasting some code without updating the id...

(def a-position
  (g/attribute "aVertexPosition" :vec3))

(def a-offset
  (g/attribute "aVertexPosition" :vec3))

I thought my shader (which used both a-position and a-offset) took two inputs, but obviously only took one - didn't realize it until I looked at the generated glsl and then the program inputs.

Not sure how to fix this one, but seems likely to be a source of confusion and pain down the road.

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

No branches or pull requests

1 participant