An A-Frame WebVR sky primitive using a simple (and fast) gradient away from the sun. Saves your GPU power for the terrain! Does not include any directional lighting. You may need to set sun-position on other elements to match.
When the sun goes below the horizon, you might want to switch to a different sky.
The sky fades to fog-color near the horizon. If you use fog in your scene, set fog-color the same or very similar to your fog. If you don't use fog, set fog-color to a grayish variant of your sky colors. The special value 'none' will disable the horizon effect, for those rare worlds that are all sky and no land.
Setting the colors of the sky:
Adding lights so shadows work correctly:
Increasing radius (default 5000) of sky sphere (increase the
far parameter of the camera, too):
You can change any of the colors on the fly, except changing fog to or from 'none'.