Search Issue Tracker
Duplicate
Votes
0
Found in
5.5.0f3
Issue ID
874707
Regression
No
Values changed in cginc file are not detected in shaders
To reproduce:
1. Open attached project;
2. In the project tab, select shaders/Material1 so that it appears in the Inspector on the right. You should see a red sphere in the preview.
3. Open the file Assets\shaders\subdir\blah.cginc
4. Change the green value so that it reads "half GreenValue() { return 1; }"
5. Check the Sphere.
Expected result: The shader immediately updates with the new color.
Actual result: The Sphere stays with the same color.
Reproduced in: 5.4.4p4; 5.5.0f3; 5.5.2p1; 5.6.0b10; 2017.1.0a2
Note: If you change values in Test1.shader , sphere color changes immediately.
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
This is a duplicate of issue #646064