Search Issue Tracker
Fixed in 2019.3.X
Votes
0
Found in
2017.1.0b6
Issue ID
922259
Regression
No
Stencil Rendering States do not get updated when setting via Shader.SetGlobalInt()
Steps to reproduce:
1. Open attached Unity Project in comment "SimpleRepro.zip"
2. Load Scene "Stencil_SetShaderGlobal_Bug"
3. Enter Play mode
4. Click on StencilID = 0, StencilID = 1, StencilID = 2 to see that each button mask out the sphere differently (correct)
5. Exit Play mode.
6. Load Shader script "Shaders\StencilGlobalDiffuse"
7. Change "ZWrite [_GlobalZWrite]" to "ZWrite On"
8. Enter Play mode again
9. Repeat step 4 to see nothing happens (wrong)
Expected result: Stencils would get updated both via script and via property block in the Inspector.
Actual result: Stencils do not update until the global ZWrite state or another Stencil state is updated.
Reproducible with: Unity 5.6.1p3, 2017.1.0b1, 2017.1.0b6, 2017.1.0b10, 2018.3.0a8
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- A submenu disappears on MacOS when the MenuItem method argument "isVariableFunction" is set to "false" and priority argument is set to "-1"
- The Sprite Library Editor window has an incorrect order of Sprites when the Sprites are reordered and the order saved
- Tilemap Tiles do not get lit up unless the Light Range is greater than the distance between the position of the Tile before the transformation and the Light Source when the Tile is transformed with Tilemap.SetTransformMatrix method
- The Editor and "Reloading Domain" windows are frozen when entering Play Mode
- Crash when attempting to create a custom FMOD DSP unit
Add comment