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

Shader reflection for arrays #18

Open
Jojendersie opened this issue Nov 7, 2014 · 0 comments
Open

Shader reflection for arrays #18

Jojendersie opened this issue Nov 7, 2014 · 0 comments

Comments

@Jojendersie
Copy link
Owner

Currently the Materials array causes 2048 variables like "Materials[22].Fresnel0" for a shader.

Would be much more intuitive to have only one variable with name "Materials".

Only found the reference https://www.opengl.org/wiki/GLAPI/glGetProgramResource without explicit description of how to get an array name only.

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