add small offset to the shadow check to prevent self-shading