Bake point light in mesh into lightmap


I’m developing a puzzle with a ball with cracks on it. Inside the ball there’s a point light. Its light rays come out of the cracks and hit some platforms (walls/ceiling/floor).

To solve the puzzle the player must rotate the ball to match the light coming out of the cracks with some pre-lit pattern on the platforms.

I don’t know how to do the pre-lit pattern. I don’t want it to be manually done using a texture editing tool like Photoshop or GIMP. I remembered this could probably be done using light baking. I think what I need is to bake the light from only that point light into a lightmap and use it only on those platforms, but don’t know how to do that.

If someone could please help I would be very thankful!

I’ve managed to find a solution: