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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Add comment