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
- [Android][IL2CPP][ARMv7] Struct field value corrupts when invoking a generic delegate with a large struct by value
- Highlights persist throughout Options Panels in the Rendering Debugger Window
- Typing numbers in Matrix node’s numeric fields stretches Node
- Streaming is misspelled as "Steaming" in "Enable GPU Streaming" and "Enable Disk Streaming" tooltpis
- "IndexOutOfRangeException" thrown when moving caret left at start of TMP Input Field with rich text
Add comment