POST material - only display the model of a certain channel

Effect

When the camera is within the scope of the post, only the model of the special channel will be displayed
insert image description here

specific methods

project settings

Set the project's customDepth rendering pass to stencil
insert image description here

Set the model's CustomDepth to a preset value, such as 2

insert image description here

Material production

Create a new material, write a material

insert image description here
insert image description here

Apply Material

insert image description here

Guess you like

Origin blog.csdn.net/tianxiaojie_blog/article/details/119422881