Search Issue Tracker
Fixed in 2021.3.45f1
Fixed in 2021.3.X, 2022.3.X, 6000.0.X, 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
- Uninitialized variable warning appears in the Inspector of a custom shader when the variable is initialized
- "Failed creating toolbar element from ID..." error is thrown when resetting the Scene view Overlay layout while an Asset Transformer Toolbox overlay is active
- Entity ID for Font Assets is serialized twice which throws an error when using Debug Inspector
- Play Mode can be entered when disabling Adaptive Performance and pressing either the Play Mode button or the keyboard shortcut to enter Play Mode before recompilation leading to errors and warnings thrown
- Parent ListView element also becomes selected when inner ListView element is selected
Add comment