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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note:
Unfortunately this bug has such a low reproduction rate that currently there is no plan to continue looking in to it.