Search Issue Tracker

Active

Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X

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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.