Mobile Terrain Shader with Multi-UV Mixing

Recently when trying to make a Unity terrain I found it cost dozens of drawcalls, definitely no go for mobile platform. So I wrote a shader that can do multi-texture tilling on a single mesh, as well as Multi-UV Mixing, credit goes to this post by larsbertram1. you can find the shader file at the bottom of this post.

Multi-UV Mixing, in plain words, is to scale the texture and mix back onto itself, it is a low-cost method to reduce apparent tilling.


[1]. Terrain Advanced Textures (Unreal)

分享