Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2020.3.X, 2021.3.X, 2022.1.X
Votes
1
Found in
2019.4
2020.3
2021.1
2021.2
2021.2.0a12
2022.2
Issue ID
1328077
Regression
No
Shaders controlling cull mode via a property get incorrectly rendered in the shadow caster pass
How to reproduce:
1. Open attached project "ShadersCull.zip" and scene "Test"
2. In Project window, select Assets/A.mat
3. In Inspector window, change CullMode to 2 and back to 0
4. In Scene View, observe changes in the shadows of "Sphere1" and "Sphere2" GameObjects
5. If no changes occur, repeat steps 3-4 using Assets/B.mat
Expected result: The spheres' shadows have different cull modes
Actual result: Both of the spheres' shadows have the same cull mode in the shadow caster pass
Reproducible with: 2019.4.24f1, 2020.3.5f1, 2021.1.4f1, 2021.2.0a14
Could not test with: 2018.4.34f1 (compilation errors break project)
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note (fix version 2022.2):
Fixed in 2022.2.0a9
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0b15
Resolution Note (fix version 2021.3):
Fixed in 2021.3.1f1