Exclude objects from post processing

Can you please show how are the material set up? I can’t seem to get it to work