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
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
This is a duplicate of issue #646064