Large terrain texturing. How to change pixel RGB value to texture?
I have a question about large terrain texturing. I've heard about splat maps but I don't like 3/4 texture limit.
Lets say I have texture like the one I've attached. Kind of splat map. I would like shader to read RGB pixel value from my texturemap file and replace it with specific texture image. Those color=texture.png pairs would be defined:
swamp = (0,12,0)
sand = (213,12,0)
dirtpath = (123,123,123)
rock = (12,12,12)
riverbed = (123,0,19)
and so on.
I would also like that those textures to blend with each other... Simple blending nothing fancy. How one can achieve that?
I think that in Arma game series textures on terrains are made like that.