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
- [Android][Mobile Notifications] The Player freezes or crashes when calling "AndroidNotificationCenter.GetNotificationChannel" every frame
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
Resolution Note:
Unfortunately this bug has such a low reproduction rate that currently there is no plan to continue looking in to it.