modify sun? aka light_enviroment

is there any scripts that changes the sun aka light_enviroment brightness?

It can’t be done in real time in any kind of convincing or optimized way.

Yes it can, I found a video of it on YouTube. I just can’t find it right now

It is possible, but in order to change the position of the light_environment, you have to recalculate every lightmap in the world, which takes a huge amount of time for little effect.