![](https://img-blog.csdnimg.cn/img_convert/c6a150177de46773648a9a9e1311d6fe.png)
By adding a post-processing volumetric luminous material
and the material is set to self-illumination, the properties of the material are also set to post-processing
Then only the stroke will get the screen position through the relevant material function, and process it
to render all object materials.
It is also possible to control only one object individually
Controls all object methods by default
set up
Set the custom deep start template channel in the project settings, in order to prepare for the individual control of certain objects in the scene
![](https://img-blog.csdnimg.cn/img_convert/e20858d128414538e74bc67a4c3864c6.png)
Set up the glowing material in the post process volume
Check the infinite range in the post-processing volume setting
and set the depth value in the corresponding model
For a simple example, for the entire scene, the preview effect after not setting the depth, by changing the size and strength, you will find that the entire scene will only have gray and white outlines.
![](https://img-blog.csdnimg.cn/img_convert/21317961f3d7e5086a1fa6b95faa40db.png)
![](https://img-blog.csdnimg.cn/img_convert/a06074a8a09130492d0ddac1dd926e13.png)
![](https://img-blog.csdnimg.cn/img_convert/0e7f6894d824671451d5d00a3d3bc9e4.png)
Set stroke range
![](https://img-blog.csdnimg.cn/img_convert/c444f7e080d96bc17cd28ed8febd113d.png)
Draw gridlines without color
![](https://img-blog.csdnimg.cn/img_convert/9d9984ddf62ebf43b6cffc2a2b505243.png)
There are still a lot of redundant drawing on the above, this time you need to floor it,
Handle redundant drawing, such as not drawing the sky
![](https://img-blog.csdnimg.cn/img_convert/d9c826fedf9bc0ade908aff724cb5045.png)
set custom depth
![](https://img-blog.csdnimg.cn/img_convert/a8fa58559ae1b6bea09a6c9508a90c68.png)
Custom Depth Mask
![](https://img-blog.csdnimg.cn/img_convert/57299437bae35e6dfda5fb999b513351.png)
![](https://img-blog.csdnimg.cn/img_convert/ffd163110074ef2f11e57a019134be78.png)
Finally, the 1 2 3 4 of the custom depth is set in the object to correspond to the color of 1 2 3 4 of the material