# Render material id into a separate screen buffer

**URL:** <https://forums.unrealengine.com/t/render-material-id-into-a-separate-screen-buffer/555490>\
**Category:** Rendering\
**Tags:** unreal-engine, UE5-0, Rendering\
**Created:** [May 12, 2022, 12:59pm UTC](https://forums.unrealengine.com/t/render-material-id-into-a-separate-screen-buffer/555490 "2022-05-12T12:59:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MetronSM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MetronSM](https://forums.unrealengine.com/u/MetronSM)\
**Post date:** [May 12, 2022, 12:59pm UTC](https://forums.unrealengine.com/t/render-material-id-into-a-separate-screen-buffer/555490/1 "2022-05-12T12:59:55Z")

</div>

For one of the effects I have to create, I would like to write some kind of material id into a separate screen space buffer which would then be processed in a post process.

The effect to create is to have infrared rendering for objects dependent on a mask in a texture. Not the whole body shows up but only parts of the mesh that are either rendered with a specific material OR by setting specific values into a buffer accessible from post process.

Has anyone a hint how to set this up?
