I just finished following the upgrade guide to go from 3.6 to 3.7 and I'm getting errors when I run our game or select shaders in the project panel. I'll list the shaders below and the accompanying error:
CameraDepthNormalsTexture
Shader error in 'Hidden/Sprite-CameraDepthNormalsTexture': failed to open source file: 'CGIncludes/ShaderShared.cginc' at line 20 (on d3d11)
CameraDepthTexture
Shader error in 'Hidden/Sprite-CameraDepthTexture': failed to open source file: 'CGIncludes/ShaderShared.cginc' at line 21 (on d3d11)
CameraNormalsTexture
Shader error in 'Hidden/Sprite-CameraNormalsTexture': failed to open source file: 'CGIncludes/ShaderShared.cginc' at line 20 (on d3d11)
SpritesPixelLit
Shader error in 'Spine/Sprite/Pixel Lit': failed to open source file: 'CGIncludes/SpritePixelLighting.cginc' at line 96 (on d3d11)
Shader error in 'Spine/Sprite/Pixel Lit': failed to open source file: 'CGIncludes/SpriteShadows.cginc' at line 154 (on d3d11)
SpritesUnlit
Shader error in 'Spine/Sprite/Unlit': failed to open source file: 'CGIncludes/SpriteUnlit.cginc' at line 68 (on d3d11)
Shader error in 'Spine/Sprite/Unlit': failed to open source file: 'CGIncludes/SpriteShadows.cginc' at line 92 (on d3d11)
SpritesVertexLit
Shader error in 'Spine/Sprite/Vertex Lit': failed to open source file: 'CGIncludes/SpriteVertexLighting.cginc' at line 97 (on d3d11)
Shader error in 'Spine/Sprite/Vertex Lit': failed to open source file: 'CGIncludes/SpriteShadows.cginc' at line 121 (on d3d11)
Under each of these errors is also something similar to the following:
Compiling Vertex program with SHADOWS_DEPTH
Platform defines: UNITY_NO_DXT5nm UNITY_ENABLE_REFLECTION_BUFFERS UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 SHADER_API_DESKTOP UNITY_HARDWARE_TIER3 UNITY_COLORSPACE_GAMMA
Some additional notes:
- Re-selecting the shaders in the project panel does not reproduce the errors until I restart Unity
- The CGIncludes folder exists in the default location from the package (Shaders/Sprite) and the files referenced in the errors are present in this directory
- Nothing special was done when installing the the Spine Unity Package except exclude the examples directory, and then the entire Spine directory was moved to a folder called ThirdParty (we do this for all external packages, and we did this with Spine 3.6)
- We are running Unity 2017.1.5f1
Thanks for any help!
Re-imported the package and left it in the default location (instead of moving it to our ThirdParty directory) and it seems to have resolved the errors.