Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

HDRP Custom Pass for 2 Cameras rendering 2 different outputs based on Layer/Tags?

Asked by 3 years ago
Edited 3 years ago

Hi,

I am looking for a custom pass to achieve this in HDRP: 2 Cameras (1 rgb like a normal camera/display). The second camera/display using another shader (unlit) which is rendering Object-Groups with a layer/tag with another color.

How could this be achieved?

I tried custom/pass and AOV but it looks that it only works for instanced objects but not for Object-Groups like layers/tags. I also analyzed the https://github.com/alelievr/HDRP-Custom-Passes but did not find solution in here.

In Buildin RP it was easy to use replacement shaders bound to a destinct camera.

Thanks in advance!

Answer this question