vscode-glsl-canvas icon indicating copy to clipboard operation
vscode-glsl-canvas copied to clipboard

How to rename default attributes and uniforms?

Open gmikhail opened this issue 2 years ago • 1 comments

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.

gmikhail avatar Aug 12 '22 17:08 gmikhail

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",
   ...
}

Bobsans avatar May 25 '23 07:05 Bobsans