Steps:
1. Open attached project (ShaderBroken)
2. Open Repro3 scene
> All spheres renders red (correct)
3. On ProjectView, open BrokenSinglePass shader, edit line 47 to make it broken:
return col * float4(1,0,0,1)=;
4. Save file, go back to Unity
> All spheres renders pink (correct)
5. edit line 47 again to fix it:
return col * float4(1,0,0,1);
6. Save file, go back to Unity
> Only the SingleShader sphere is red, UsePass sphere stays pink (wrong)
Expected: both sphere renders red after SingleShader sphere is being fixed
Reproducible:
2022.2.0a3.602 (fc824837782c)
2022.1.0b4.2571 (0b1e54378c16)
2021.2.8f1.4208 (d0e5f0a7b06a)
2021.2.0b1.3027 (1e2674f03162)
2021.2.0a18
Not-reproducible:
2021.2.0a17
2021.1.21f1.3059 (f2d5d3c59f8c)
2021.1.0f1.2163.11 (61a549675243)
2020.3.18f1.979 (a7d1c678663c)