Fix z problem in path shaders