Clipping 2D cookie light as if it were 3D

In my 2D scene I have a light with a triangular cookie. I would like this cookie to clip and stop when it hits the ground, like the cone of a normal 3D light would. I also have 2D sprites moving around, and I don’t want them to clip. How can I do this?

Add a collider to it so it collides with the ground collider?