You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
I'm using glsl-viewer to develop shaders that are then loaded in a different programming environment. The idea of passing textures using comments is very useful and I think it would be nice to be able to also set float and vec uniforms in comments.
It shouldn't be be too hard to copy the texture function and make it work with other uniforms:
// Match floatsre=/^\s*uniform\s+float\s+(\S+)\s*;\s*\/\/\s*(\S+)\s\s*$/gm;// Match vec2sre=/^\s*uniform\s+vec2\s+(\S+)\s*;\s*\/\/\s*(\S+)\s(\S+)\s*$/gm;// Match vec3sre=/^\s*uniform\s+vec3\s+(\S+)\s*;\s*\/\/\s*(\S+)\s(\S+)\s(\S+)\s*$/gm;
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm using glsl-viewer to develop shaders that are then loaded in a different programming environment. The idea of passing textures using comments is very useful and I think it would be nice to be able to also set float and vec uniforms in comments.
It shouldn't be be too hard to copy the texture function and make it work with other uniforms:
The text was updated successfully, but these errors were encountered: