vscode-glsl-canvas
vscode-glsl-canvas copied to clipboard
How to rename default attributes and uniforms?
In my shaders, I want to use my variable names (instead of, for example, in vec2 v_texcoord;
or uniform vec2 u_mouse;
) and it's inconvenient for me to rename them every time when I edit the shader in VSCode.
Where I can change it names in the extension source code?
I tried to search and change the names myself, but apparently I'm missing something.
same problem. maybe it's worth adding the ability to change the names of uniforms and attributes in the configuration, for example, using some kind of dictionary, for example
"uniforms_override": {
"u_mouse": "custom_mouse",
"u_time": "ut",
...
},
"attributes_override": {
"a_color": "glFragColor",
...
}