How to reproduce:
1. Open the “TerrainShaderTest.zip“ project
2. Build and run the project
3. Observe the Player
Actual: Terrain shaders are stripped, the terrain shows up in pink
Expected: Terrain shaders are included, and the terrain shows up with valid textures
Reproducible in: 6000.0.0f1, 6000.0.64f1, 6000.3.1f1, 6000.4.0b1, 6000.5.0a3
Could not test in: 2023.3.0a2 (pink textures are present, but unsure if the bug causes that)
Reproduced on: Windows 11 Pro (25H2)
Not reproduced on: No other environment tested
Note: This bug manifests in player builds if the following are all true:
- Strict Shader Variant Matching is on (if off, it just hides the problem)
- URP shaders are in an addressable group
- Terrain and scene are in an addressable group
- Terrain uses the normal map and/or the mask map
- Terrain uses 5 or more layers (so multiple passes are needed)