How to reproduce:
1. Open the attached "IN-146403_ColorTest" project
2. Open the "SampleScene" Scene
3. Open Project Settings → Graphics and ensure that under "Shader Build Settings", "Keyword set" is set to “_ALPHATEST_ON _ALPHABLEND_ON _ALPHAPREMULTIPLY_ON” and "Type override" to “multi_compile”
4. Build and run the project
5. Press "H" when in the Player and observe the results
Actual result: Shader stripping happens every time
Expected result: Shader stripping won't happen when "Shader Variation Collection" or "Shader Build Settings" are correctly set and the cube becomes transparent
Reproducible with: 6000.3.0a1, 6000.3.19f1, 6000.5.2f1, 6000.6.0b2, 6000.7.0a1
Not reproducible with: 6000.0.1f1, 6000.0.78f1, 6000.2.0b2
Reproducible on: Windows 11 Enterprise (25H2)
Not reproducible on: No other environments tested
Notes:
- Reproducible only in the standalone Player, the material fades correctly in the Editor
- There is another way, that could be done instead of 3rd step, it’s adding the "Shader Variation Collection" located inside the Materials folder to "Player Settings -> Graphics -> Preload Shaders", but it doesn’t work as well.
- Shader stripping won’t happen if you add an object with required shader on the scene.