Skip to content

Instantly share code, notes, and snippets.

View netarc's full-sized avatar

Josh Hollenbeck netarc

View GitHub Profile
@netarc
netarc / hdrp_custom_render.cs
Created April 18, 2019 20:08
Unity3D HDRP - Workaround / Hack to keep post-processing from not rendering in a camera view (HDRP 5.2.3-preview and prior)
// CAUTION - This was originally tried for HDRP 5.2.3-preview and prior
// Shortly after in newer HDRP verions they made some "bigger" changes inside their HDRenderPipeline.cs
// Render method and they now iterate Cameras into RenderRequests and then in another loop iterate through RenderRequests
// The unfortunate side-effect of this since customRenderer does not create a RenderRequest, is then just
// submits the render context right there on the spot inside the first pass making it render before other cameras.
using UnityEngine.Experimental.Rendering;
using UnityEngine.Experimental.Rendering.HDPipeline;
...

Keybase proof

I hereby claim:

  • I am netarc on github.
  • I am netarc (https://keybase.io/netarc) on keybase.
  • I have a public key ASDeoIVKbSA8Xc_-8TkQqvyVCb9oKM4weutUYWjAseEcNAo

To claim this, I am signing this object: