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
Comments (2)
-
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
- DisplayDialogComplex crashes with a long content string containg Cyrillic chars
- "Draw Additional Lights Shadowmap" calls increase when custom MaterialBlockProperty is used
- Crash on _platform_memmove when importing the "Dragon Crashers - URP 2D Sample Project" to a new 2D project
- "Shader is not supported on this GPU" warnings and and shaders are not loading when building the project for non-Chromium browsers
- [iOS][URP] The screen flickers and the "Execution of the command buffer was aborted due to an error during execution" error is thrown continuously
This is a duplicate of issue #646064