There is a nice terrain-multitexturing shader in my day-night testlevel here