Could someone explain how a solar flare works in the Electric Dreams project?

Hi!
Could someone explain how a solar flare works in the Electric Dreams project?

I found the texture of the sun and BP-LensFlareSpawner, but I don’t understand how it works and how to create my own celestial bodies. I need help.