This is for the upcoming book Games Gems III. It demonstrates using cube maps to encode shadows as well as clouds in a cube map.
The Shadows have been darkened, so that they show up in the terrain. This demo look better when animating.
Click here for the source code and executable