alelievr / HDRP-Custom-Passes

A bunch of custom passes made for HDRP
MIT License
1.31k stars 138 forks source link

Outline with hdrp volumetrics not showing colors #23

Closed dvanhaazel closed 11 months ago

dvanhaazel commented 3 years ago

Hi, I have an issue with the outline shader example (using unity 2020.2.5f1 ). The outline is specified as red in the fullscreen pass, however it shows up black and only red when there's a density volume over it. So first thing I thought it's because of the volumetrics. But turning them off doesn't fix the issue as it remains black. I tried turning off everything one by one (also post effects), but it just stays black. Also tried different injection points, maybe you have any thoughts about this ? Thanks!

image

image

alelievr commented 11 months ago

Hey, if you want the outline effect to be rendered without the fog, you can use the AfterOpaqueAndSky injection point:

image

This allows the fog to be applied on top of your outline effect and not the reverse