URP Deferred and custom lighting

With forward, its fairly easy to make some custom code that sits alongside the package, and changes the way a forward pass is lit. This doesn’t really appear to be the case for deferred, as far as I can tell it stems from the StencilDeferred.shader which I don’t really see any way to override its functionality, short of making a local copy of the entire universal package to make the appropriate changes.

However I’d rather not do this, and am hoping there’s a better way to do this?

Hey, so this difenently something we do not support fully yet. However you can override StencilDeferred.shader in you renderer with debug mode as this property is hidden by default.

2 Likes

thank you, just what I was looking for!

1 Like

Hi! This has been really helpful for me to crack open the inner workings and get some things working. However I’ve 2 questions:

  • This works for the normally deferred lights - point, directional ect. - How do I edit the way that emissive is handled (specifically, adjust it’s blending mode)
  • What is the roadmap for making this more editable?