Search Issue Tracker
Won't Fix
Votes
0
Found in
5.6.4f1
Issue ID
1014880
Regression
No
Shader cannot find 'frag_surf' and 'vert_surf' and throws errors in the console and Inspector
Reproduction steps:
1. Download user's project and open in Unity
2. Select "InstancedAngelFishShader" shader in Assets
3. In Inspector tab property "Compiled code" only check D3D11
4. Press "Compile and show code"
Expected: no errors in the console or inspector
Actual: errors appear in the console or inspector
Reproduced on: 5.6.4f1; 5.6.5p3; 2017.1.3p2; 2017.2.2p2; 2017.3.2f1; 2017.4.0f1; 2018.1.0b12; 2018.2.0a5
Note: error messages -
1) "Shader error in 'NightBox/Fauna/Angel Fish (Cull Off, Cutout, Instanced)': Did not find shader kernel 'frag_surf' to compile (on d3d11)
Compiling Fragment program with DIRECTIONAL DIRLIGHTMAP_COMBINED DYNAMICLIGHTMAP_ON DIRLIGHTMAP_SEPARATE
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_RGBM_ENCODING"
(and once more for 'vert_surf')
2) "Shader error in 'NightBox/Fauna/Angel Fish (Cull Off, Cutout, Instanced)': Fragment program 'frag_surf': Unrecognized sampler 'samplerunity_lightmap' - does not match any texture and is not a recognized inline name (should contain filter and wrap modes).
(on d3d11)
Compiling Fragment program with DIRECTIONAL LIGHTMAP_ON SHADOWS_SHADOWMASK
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION"
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
Resolution Note:
Unfortunately this bug has such a low reproduction rate that currently there is no plan to continue looking in to it.