Changing ZTest via code during runtime is inconsistent
First off, thank you for a fantastic library!
It seems that updating ZTest for a shape during runtime only seems to work in some scenarios. If the initial state is LessEqual, I then set it to Always:
shape.ZTest = CompareFunction.Always;
This works as expected and the shape becomes visible even when obscured by other geometry. Then, later, I set it back:
shape.ZTest = CompareFunction.LessEqual;
But the object remains visible while obscured. I can see that the value in the "Depth Test" property of the inspector updates, but it does not impact rendering.
Making similar changes using the inspector (instead of code) works as expected.
Reporting a bug? please specify Unity version:
6.2.10f1
Reporting a bug? please specify Shapes version:
4.5.1
Reporting a bug? please specify Render Pipeline:
URP