Search Issue Tracker
Fixed in 2018.1.X
Votes
0
Found in
2017.1.2f1
Issue ID
957024
Regression
No
Changes to .cginc files does not cause shaders in different directories to recompile
Reproduction steps:
1. Open "CGIncludeBug.zip" project
2. Open "Test" scene
3. See that both Quads are yellow
4. Open the "Include.cginc" file with a text editor
5. Change the "return fixed4(1, 1, 0, 1);" to "return fixed4(0, 1, 0, 1);"
6. Go back to the Editor and see that the right Quad changed to Green, but the left one didn't
7. a) Reimport All (Or just the "SubDirectory" -> "SubDirectory" Shader)
b) 1) Open "SubDirectory" -> "SubDirectory.shader.meta" with a text Editor
2) Do any change and save
3) Go back to the Editor
8. See that the left Quad changed the color to Green
Expected Result: After doing changes to the .cginc file, all relevant shaders should reimport
Actual Result: After doing changes to the .cginc file, only the shader in the same directory reimports
Fixed in: 2018.1.0a3
Reproduced with: 2017.3.0b4, 2017.2.0f3, 2017.1.2f1, 5.6.4f1, 5.5.5f1
Note:
If not Reimported, the shader doesn't change even when making a build
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
- Rendering locks up when not looking at a transparent material on Meta Quest 2
- Volumetrics break when using a Custom Pass to create a Thickness Buffer for Alpha Clipping
- All tests are run instead of only the failed ones when the "Rerun Failed" button is pressed
- GameObject is not masked when the "Render PostProcessing Effects" pass executes with a resolved non-MSAA Color target and MSAA DepthStencil target
- [Android] Gfx.WaitForGfxCommandsFromMainThread high performance usage and inconsistency when built Player scene has Canvas GameObject on a specific Project
DanteMarshal
Sep 22, 2021 13:39
I'm having this problem with Compute Shaders on 2020.3.18f1
IIporpammep
Dec 26, 2017 09:32
Why didn't it fixed in some patch release for unity 2017?
ArConstructor
Dec 01, 2017 08:19
Also, does this fix the problem with dependency tracking for package export? (https://issuetracker.unity3d.com/issues/shadercompiler-shaders-do-not-get-recompiled-on-changes-in-includes)
Nexusmaster
Oct 21, 2017 13:21
This is still an issue with compute shaders, do they get fixed too?