Search Issue Tracker
Fixed
Fixed in 2021.3.45f1, 2022.3.51f1, 6000.0.22f1, 7000.0.0a9
Votes
0
Found in
2021.3.43f1
2022.3.45f1
6000.0.18f1
Issue ID
UUM-79305
Regression
No
[SRP Batcher] When the type of the Stencil Ref property in the shader is an integer, SRP batching is not broken even if the stencil ref value's differ
Steps to reproduce:
1. Open the attached user's project "StencilTest_6000.zip"
2. Open "test2.unity" Scene
3. Set the Stencil value of "Test_UseSRPBatching_Main" and "Test_UseSRPBatching_Sub materials" to 20
4. Set the Stencil value of "Test_UseSRPBatching_Main 1" and "Test_UseSRPBatching_Sub 1 materials" to 21
5. Open Scene View and observe the rendering
6. Set the _StencilValue type in "UseSRPBatching_Main.shader" and "UseSRPBatching_Sub.shader" to Float
7. The rendering result is different when the type of _StencilValue property is Integer or Float
Expected results: When the type of the Stencil Ref property in the shader is an integer, SRP batching is broken
Actual results: When the type of the Stencil Ref property in the shader is an integer, SRP batching is not broken even if the stencil ref value's differ
Reproducible with: 2021.3.43f1, 2022.3.45f1, 6000.0.18f1
Testing Environment: Windows 11
Not reproducible on: no other environment tested
Notes:
-See attached "FloatType.png" and "IntegerType.png" to observe the differences
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Animation Clip with Legacy enabled does not play when Time.timeScale is set to 0 despite Update mode set to "Unscaled time"
- Rename is enabled on subfolder empty space - "Can't rename to empty name" warning
- SamplerState Property Missing Anisotropic Filtering
- Visual glitches when using Handles API
- The RGBA color values are inconsistent when comparing two identical colors set in the Inspector
Add comment