Materials-Use Ray Marching to make smoke volume in UE4

Ray Marching can be regarded as an implementation of Ray Tracing. It is an algorithm for calculating the intersection of light and object. Each time the light is advanced by a certain step, and it is detected whether the current light is on the surface of the object and adjusted accordingly The light advances until it reaches the surface of the object;

Then use it on the material, you can achieve some effects such as smoke volume; such as 2D Ray Marching;

The article was published in Zhihu: https://zhuanlan.zhihu.com/p/77373397

Guess you like

Origin blog.csdn.net/DoomGT/article/details/99339116