How to procedurally create new texture from several textures in run-time?
Hello everybody. I'm newbie in Unity. So I have a question.
I developed an algorithm for procedure terrain generation. Now it generates complex relief but without texturing. There are some zones on this relief, for example, sand hills, rocky mountains, etc.
I can't understand how to generate one big and complex texture for one terrain object that I have. The texture should be "sand" where sand hills are, "rock" where mountains are and so on. Could you help me with the literature or something which I should to read. Thanks so much.
Answer by Menyus777 · Jun 24, 2017 at 10:19 PM
Use terraindata.getheights to read out height values then make a function which places diff textures on diff heights for example 0.7-1.0 is rock , 0.0-0.2 is sand etc, then make a splat map, and apply Gausian Blur to blend the textures