Unique override material for each mesh inside a custom pass?

So you are pushing us to use Custom Render Pass shaders and render objects in bulk inside the custom pass. But how can I set up different override materials for each mesh that sits on a certain layer that I want to render in a custom pass?

Hello, you can use all the CommandBuffer APIs for this: Unity - Scripting API: CommandBuffer

There is an example of this here: HDRP-Custom-Passes/Assets/CustomPasses/TIPS/TIPS.cs at master · alelievr/HDRP-Custom-Passes · GitHub

1 Like