Search Issue Tracker
Won't Fix
Votes
0
Found in
5.6.1p3
Issue ID
924456
Regression
No
[Shader Compiler] Compile error with overloaded CG methods differing only in precision on OpenGLES2
Steps to reproduce:
1) Download attached project 'UnityShaderCompileError.zip' and open in Unity
2) Open scene 'testScene'
3) Select 'TestShader' shader in the Project window
4) In Inspector, click on 'Compile and show code'
Observe error in the Console window:
Shader error in 'Custom/TestShader': 'fmodPositive' : function already has a body at line 43 (on gles)
Expected result: No errors in the Console window when shader been compiled for GLES2
Actual result: 'Shader error in 'Custom/TestShader': 'fmodPositive' : function already has a body at line 43 (on gles)' error in the Console window
Reproduced with:
5.5.4p1, 5.6.2p1, 2017.1.0f1, 2017.2.0b1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Add comment