Add depth clamp to elimate contraint clipping