Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Adding multiple textures to a procedurally generated terrain mesh?

$
0
0
![my terrain curently][1] I'm trying to make a sort of improved minecraft procedurally generated terrain and thats coming along quite well but I want to, just like in minecraft have multiple materials so that not everything is just green as it is now. I want to do this by giving each vertex on the mesh a material index so for instance "2" would be stone or something. ![crappy drawing!!][2] so what I would want, would be that the vertex with the red dot would for instance be stone and then the red square around it would become a stone texture but i have no idea how to do this, the only thing that i could come up with was maybe to use some sort of shader but I've never worked with shaders before so I wouldn't have any idea what to do. I also think it might be easier to just convert my meshes to actual unity terrains but those cant have overhangs or caves I think and my game is going to be some sort of minecraft-ish game so I need to be able to dig into walls and create overhangs so unity terrains aren't really an option. any help would be much appreciated [1]: /storage/temp/18343-terrain.jpg [2]: /storage/temp/18344-explanation.png

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>