godotengine / godotengine/godot
Inconsistent shader uniform name capitalization
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
4.6 stable
### System information
Godot v4.6.stable - Windows 10 (build 19045) - Single-window, 1 monitor - Vulkan (Forward+) - dedicated AMD Radeon RX 580 2048SP (Advanced Micro Devices, Inc.; 31.0.21923.1000) - Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz (4 threads) - 15.96 GiB memory
### Issue description
Shader uniforms with similar naming convention results in different capitalization in the inspector.
For example
```
uniform bool project_xy = true;
uniform bool project_xz = true;
uniform bool project_zy = true;
```
results in
The Y for ZY isn't capitalized.
Also group uniforms names don't follow the same convention as uniforms.
```
group_uniforms UV_Controls.uv_Select;
uniform int uv_Select : hint_enum("UV1, UV2") = 0;
```
Same naming convention but the subgroup doesn't capitalize.
### Steps to reproduce
Test different naming conventions with shader uniforms and uniform groups
### Minimal reproduction project (MRP)
.
Contributor guide
Assessment
This issue has not been assessed yet.