For more information on the road, see the previous article: http://www.cnblogs.com/zhucde/archive/2009/03/06/1655247.html
Some time ago (Khan, a few months ago ).AlgorithmAfter doing this again, it is basically equivalent to abandoning the original practice. Now the speed is faster and the effect is better,
At the same timeCodeDirectly add it to the road material and terrain material, and no longer use the original two-layer pass overlay method. One is to improve the speed, and the other is to improve the effect,
Even the edge transition is implemented using CG, which is very convenient.
In terms of terrain, in addition to directly integrating PSSM light in the shader, it also imitates crysis and adds hundreds of millions of detailtexture-like things, in my understanding, painttexute of different levels uses different UV flat-level textures. The textures in the distance and near areas are not the same:
The road start point is also integrated:
Overview:
Last one:
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/zhucde/archive/2010/10/19/5951923.aspx