Search Issue Tracker
Fixed in 5.0.X
Votes
0
Found in
5.0.0b14
Issue ID
650589
Regression
Yes
[Shader Compiler] Empty surface shader throws errors on GLES2 graphics level
Empty surface shader throws errors on GLES2 graphics level
Steps to reproduce:
1. Create a new project
2. Create a new shader and make use of it
3. Deploy the project to any device using Open GL ES2.0 graphics level. Upon start error will be thrown:
D/Unity (10112): -------- GLSL error: Fragment shader compilation failed.
D/Unity (10112): ERROR: 0:6: '' : extension 'GL_EXT_draw_buffers' is not supported
D/Unity (10112): ERROR: 0:51: '[' : array index out of range '1'
D/Unity (10112): ERROR: 0:52: '[' : array index out of range '2'
D/Unity (10112): ERROR: 0:53: '[' : array index out of range '3'
D/Unity (10112): ERROR: 4 compilation errors. No code generated.
On GLES 2.0 devices.
GLES 3.0 devices will throw error:
D/Unity ( 8513): -------- GLSL error: Fragment shader compilation failed.
D/Unity ( 8513): ERROR: 0:6: '' : GLSL error: extension 'GL_EXT_draw_buffers' is not supported
D/Unity ( 8513): ERROR: 1 compilation errors. No code generated.
D/Unity ( 8513):
D/Unity ( 8513):
D/Unity ( 8513):
D/Unity ( 8513): Warning: Creation of shader 'Custom/MyShader' failed.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- HDRP 6-way VFX Shader is lit incorrectly when World coordinates are used
- 2D Sprite Renderer in front is affected by Sprites in the background when using Sorting Layers and a Shadow Caster 2D with Self Shadow
- Modifying UI Prefab child's Height only confirms the first 1 or 2 digits when the Scene is newly opened or the Prefab is newly created
- ProfilingSampler.Get() returns null and makes the Player only render black when building a Release Build
- Search text field visual controls for the Path binding in an Input Actions Asset is misaligned
Add comment