As it can be seen in many first-person shooters and survival horror games, lights and shadows can add a great deal of complexity to a scene, helping immensely to create the right atmosphere for the game. In this recipe, we will create a cloudy outdoor environment, lighting it using cookie textures.
If you don't have access to a image editor or prefer to skip the texture map elaboration in order to focus on the implementation, please use the
cloudCookie.tga image file provided in the
To simulate a cloudy outdoor environment, follow these steps: