Forum Discussion
Got it, using different URP renderers and setting the desired renderer for the camera at runtime:
Camera.main.GetUniversalAdditionalCameraData().SetRenderer(1); // index 1 is HDR renderer
Camera.main.GetUniversalAdditionalCameraData().renderPostProcessing = true;
Camera.main.GetUniversalAdditionalCameraData().allowHDROutput = true;
Camera.main.allowHDR = true;
Don't forget to set the HDR enabled on the Pipeline Asset prior to build, passthrough will works if the camera uses a no HDR renderer and postprocessing is disabled.
- maoshmellow2 years agoExplorer
Hi Vic,
Thanks for documenting your process. I've been running into a similar issue and was wondering if you could elaborate on how you can set a renderer to be "no HDR"? To my belief, you set HDR options for URP in project settings and not on the renderer itself.
- Viconthebeach2 years agoProtege
Hi, Just go to the project panel, right click>create>Rendering>URP Asset (with URP renderer)
Then look to the inspector panel of the newly created renderer pipeline asset, in the quality settings there's a HDR checkbox. But in fact now the issue isn't occuring anymore, you can just use a Render Pipeline Asset with HDR on, then set the camera with or without HDR output and post-processing effects. It works like a charm now.