I have created a SunFlare module for those who want to create SunFlares in WebGPU (or WebGL).
The module (SunFlare.js) is available on my GitHub page in the jsm directory. The module works with OrbitControls or with my own simple Camera Rotator.
A program showing the module (SunFlare_mod_test.html) in action is available in the xtra directory. Here is the link which allows you to see the program in action. (You may have to hit reload to see the SkyBox - since it doesn’t always display initially.)
There is also a program in the xtra directory (SunFlare_test.html) which uses the module code internally. Here is the link which allows you to see that program in action.
To use the module, your program should include the SunFlare section shown in the demonstrator programs. You will also need to insert a SunFlare loader (like the one in the programs) to create your Sprites. And you will have to insert code to call the module and update the module.
You can create as many Sprites as you want in whatever shape or size you want. The Offset Multiplier you assign to each Sprite will govern the on-screen displacement of the Sprite from the Sun. These values can range from 1 (centered on the Sun) to -0.5 (far away from the Sun).
ADDITION (Aug 5)
I have added another version of the module (SunFlare2.js) which is designed to work in situations where you are attaching the camera to an object that rotates (like an airplane). You can see this in action in this program. Click on the view button to attach the camera to the airplane. Then bank the airplane to see how the SunFlare remains correctly aligned.
If there is enough interest, I can explain how to create this kind of Camera Rotator. You can also use it to create a pilot view, which is attached to the airplane and which looks out, rather than in.
Also, I should have mentioned above that the module is designed to allow you to load and create the Sprite materials in your program and pass the addresses to the module. That gives you maximum flexibility in designing your Sprites. For example, you can use NodeMaterials to create some colorful Sprites.