Search Issue Tracker
Fixed in 2017.2.0f3
Votes
0
Found in
5.6.0b6
Issue ID
877260
Regression
No
WriteMask is ignored when writing to the Stencil Buffer
To reproduce:
1. Open attached project;
2. Open "Test scene" scene;
3. Check the Game view.
Expected result: in the first pass Stencil Buffer value should change to 0 using WriteMask set to 0.
Actual result: WriteMask is ignored when writing to the Stencil Buffer.
Reproducible on versions: 5.4.4p1, 5.5.1f1, 5.6.0b7.
Note: Shader "StencilTestShader" has 3 passes: in the first pass the value of Stencil Buffer has to be changed to 0 using WriteMask and fills the pixels with a red color. The second pass checks if Stencil Buffer value is 0 and fills pixels with a green color. The third pass checks if the value of Stencil Buffer is still set to 255 and fills pixels with blue color.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Rendering locks up when not looking at a transparent material on Meta Quest 2
- Volumetrics break when using a Custom Pass to create a Thickness Buffer for Alpha Clipping
- All tests are run instead of only the failed ones when the "Rerun Failed" button is pressed
- GameObject is not masked when the "Render PostProcessing Effects" pass executes with a resolved non-MSAA Color target and MSAA DepthStencil target
- [Android] Gfx.WaitForGfxCommandsFromMainThread high performance usage and inconsistency when built Player scene has Canvas GameObject on a specific Project
Add comment