Fixed blending for 3 terrain textures.
This commit handles the specific case where there are 3 terrain textures
that need to be blended.