Simplify occlusion code