TerrainFourLayer2Pass

Author: Eric Haines (Eric5h5) - Based on the TerrainFourLayer shader

Description
This is similar to the above referenced shader, with these differences: 1) It should work properly on all graphics cards from the 5200FX and later 2) It has fog 3) It uses 2 passes, so it's slower 4) It has a _Base texture, which is used as a fallback for really old cards like the Radeon 8500 and older. This should be like the mixing mask, but with colors, so you can at least get a flat-shaded version of the texture colors...otherwise you'd just get a single texture which wouldn't be representative of the mixed texture at all. If you don't care about old cards like that, then you can skip it.

Usage
Place this shader somewhere in your Assets folder hierarchy, create a material which uses it and apply it to the relevant objects.