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

Uniform initialisation #30

Open
hughsk opened this issue Dec 11, 2015 · 0 comments
Open

Uniform initialisation #30

hughsk opened this issue Dec 11, 2015 · 0 comments

Comments

@hughsk
Copy link
Member

hughsk commented Dec 11, 2015

Appears to not be supported in WebGL (or at least not my machine), though it's listed in the spec, e.g.:

uniform vec3 initialUniform = vec3(1.0, 0.0, 0.0);

This provides default values for uniforms which would be really nice for making more reusable shaders, but quite likely out of scope for gl-shader to shim. Maybe a wrapper package, or even a polyfill? Polyfill runs the risk of putting more burden on the package consumer, though also provides a leaner and more generic way of getting support across multiple frameworks/libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant