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

Edit: Generalized the approach so it works for 3 terrain textures and
**maybe** more.

Second edit: Changed where the detailBlend is subtracted to simplify further
development.