Search Issue Tracker
Fixed in 2017.1.X
Votes
2
Found in
2017.1.0b7
Issue ID
917247
Regression
Yes
Stencil 'Comp' operation is ignored when shader is used with SpriteRenderer
Repro steps:
1. Open "SpriteStencilBug" projects "Main" scene
2. Look at "UnlitStencilSprite" and "UnlitStencilMesh" in the Hierarchy window (One has a Mesh renderer and the other has a Sprite renderer)
3. Open the "UnlitStencil" Shader file
4. Change code at line 18 from "Comp Always" to "Comp Never"
5. Go back to the Editor
Expected result: Both of the cubes disappear
Actual result: One of the cubes disappear (The one with the Mesh renderer)
Reproduced with: 2017.1.0a6, 2017.1.0b8, 2017.2.0a1
Regression introduced in: 2017.1.0a6 (00315a6f23c0)
Did not reproduce on: 5.6.1p2, 2017.1.0a2, 2017.1.0a4, 2017.1.0a5
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment