UE5 realizes the effect of sticking to the ground (RT+Decal)

1. Achieve goals

In the previous article, based on CesiumForUnreal, the ground-based rendering effect of the terrain 3DTileset is realized. Here, a RT和Decalmore general ground-based effect is realized based on UE's own. Still loading the online Cesium World Terrain, the effect of sticking to the ground is as follows:

insert image description here

2. Implementation process

Here, UE's RT and Decal are used to implement a more general method of sticking to the ground. Since Decal decals can only be square, since the shape of the decal cannot be changed, then by changing the texture map and setting the opacity of the material, an irregular shape can be indirectly produced. But this method also has certain problems, because the size of the texture is certain, and the edge aliasing problem is very obvious under a large scale , which is not as good as the ground paste based on 3dtileset in the previous article.

Guess you like

Origin blog.csdn.net/weixin_45782925/article/details/129890271