I found the “Slope and altitude based materials in Cycles” tutorial by Pelle Nilsson on the BlenderNation page, and found it a good way to solve a problem in my pet project.
It works very well, but where this tut applies only two different textures based on sloping, I have eight different textures that need to be applied.
I managed to build up a node setup that provides me with an index value to tell me where to use which texture.
But the only way to use these different textures on a single object that I found is the use of the “mix shader” with a fitting factor applied.
With eight different textures, this results in an enourmously complicated noodle node setup.
Is there a simpler way to index textures and use them by simply calling up this index value?
You would simply extract the normal and slope information as a black and white mask and then use color-ramps to dictate the exact values needed for height and slope.