Search Issue Tracker
By Design
Votes
0
Found in
5.1.0b3
Issue ID
691125
Regression
No
Unnecessary uniforms from surface shaders generated to OpenGL ES 3.0
I noticed very strange behavior in unity 5.1b3 that compiled shaders for OpenGL ES 3.0, have lots of unnecessary uniforms, see screenshot (Graphics_GLES3_UnnecessaryUniforms.png). It did not happen in unity 5.1b2, So I have reason to believe its regression.
1. Open shader (5.1b3 Compiled-Fixed4Shader.shader).
2. And you should see in vertex function part:
uniform vec4 _Time;
uniform vec4 _SinTime;
............................. (Lots of unfiroms)
uniform mediump vec4 _Half;
uniform lowp vec4 _Fixed;
3. Open shader (5.1b2 Compiled-Fixed4Shader.shader).
4. This time you should see in vertex function part:
uniform mat4 glstate_matrix_mvp;
(only one uniforms that is ussed)
Shaders 5.1b3 Compiled-Fixed4Shader.shader and 5.1b2 Compiled-Fixed4Shader.shader generated from same shader (Fixed4Shader.shader) just on different unity versions.
Reproduced: 5.1.0b3
Regression: 5.1.0b3 (Works in 5.1.0b2 as should be)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Add comment