Search Issue Tracker
Fixed in 5.5.0
Votes
0
Found in
5.3.0f4
Issue ID
754682
Regression
No
[shaders] If a cginc file exists in a parent directory, it's preferred over a local cginc file?
To reproduce:
1.Open provided example project
2.Open "Project/Assets/Scene.unity"
3.Notice the cube is blue
4.Open "Project/Assets/MyInclude.cginc" in a text editor
5.Notice the line "fixed4 col = fixed4(0,0,1,1); // blue"
6.Copy "Project/Assets/MyInclude.cginc" to "Project/MyInclude.cginc"
7.Switch back to "Project/Assets/MyInclude.cginc" in a text editor
8.Change line to "fixed4 col = fixed4(1,0,0,1); // red" and save
9.Reimport "Project/Assets/NewUnlitShader.shader"
10.Notice the cube stays blue
11.Delete "Project/MyInclude.cginc"
12.Reimport "Project/Assets/NewUnlitShader.shader"
13.Notice the cube turns red
Expected result: the cube turns red in step 10
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Unexpected exception System.DllNotFoundException" error thrown in the Console window when creating a project with 2D (URP) Template
- [Backport] [XR SDK] [HDRP] XRSettings.gameViewRenderMode does not change Game View Render Mode
- [Backport] [Android][Vulkan] Crash on Samsung Note8 while running gfx tests
- [Backport] Wrong sorting for "GC Alloc" column in Show Related Objects panel of Profiler Window
- [Backport] [iOS] Unfreed allocation errors thrown in Console when executing Build And Run with iOS platform
Add comment