Cubes in the sky ...
I have played around a bit with your script.
Unfortunately I can only use an older version of SpaceEngine at the moment. In this case, SE 0.971
Interestingly, the sun looks very good in this version. But I have changed your script something.
And I use a slightly different texture.