Search Issue Tracker
Duplicate
Votes
3
Found in
5.0.0p3
Issue ID
685617
Regression
No
[ShaderCompiler] Shader files that include .cginc files don't record them as dependencies (for package export etc.)
Reproduction steps:
1. Open the attached project "ShaderDependenciesBug"
2. Go to Assets/Marmoset/Shader/Terrain
3. Right click "Marmoset Terrain Specular" shader and select "Log EditorUtility.CollectDependencies"
4. Notice that "MarmosetTerrain" shader will not appear in the log,
even though "Marmoset Terrain Specular" is dependent on it (#include "MarmosetTerrain.cginc)
5. Right click "Marmoset Terrain Specular" shader and select "Log AssetDatabase.GetDependencies"
6. In the log you can see that both cginc files and fallback shaders are excluded
-
raffc1
Sep 28, 2016 12:53
Somewhat pointless exporting a package if it doesn't include shaders and their associated includes. Even standard assets like water don't export properly and render as pink with a missing include file error.
Seems OTT to have to setup an artist with full source control to have a brief look at something in a scene, and it's not practical to send over huge entire project files.
-
jhughes_otherside
Sep 20, 2016 18:57
This is a massive pain for anyone who hands around files without using source control. Artists especially, building remotely, will typically import a bunch of new 3rd party shaders and when they send over their work, we have them send it as an asset pack. This bug makes the asset package worthless for us.
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
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- [Linux] AutoLocale log is logged when opening a project
This is a duplicate of issue #646064