Search Issue Tracker
Active
Votes
0
Found in
2021.2
2021.2.0b4
Issue ID
1355311
Regression
No
SRP Batcher Batches Materials together when using different Integer Stencil Ref and Comp values
How to reproduce:
1. Open user-submitted project
2. Select "Far - Toggle this" Game Object in the Hierarchy and deactivate it
3. Inspect the rendering of "Near" GameObject
4. Select "Far - Toggle this" Game Object in the Hierarchy and activate it
5. Inspect the rendering of "Near" GameObject
Expected result: "Near" GameObject is always rendered on top of the stencil
Actual result: Rendering of the "Near" GameObject changes as we toggle "Far - Toggle this" GameObject
Reproducible with: 2021.2.0b4
Could not test with: 2019.4.30f1, 2020.3.19f1, 2021.1.22f1, 2021.2.0b12, 2022.1.0a9 (Shader Errors)
Notes:
- Assigning "Unlit Integer" Shader to either "Near Mat" or "Far Mat" Materials fixes the problem
- Disabling SRP Batcher in "Custom RP" Asset fixes the problem
- Changing Blend Source Factor (Src Blend Property) or Destination Factor (Dst Blend Property) of "Near Mat" or "Far Mat" fixes the problem
- Changing the ZWrite value (Z Write Property) of "Near Mat" or "Far Mat" fixes the problem
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- GfxDevice::UpdateBufferRanges when running UIBuilder tests
- [Android][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
Add comment