debugged occlusion checker