Cyanilux / URP_BlitRenderFeature

Blit Render Feature for Universal RP's Forward Renderer. Set specific source/destination via camera source, ID string or RenderTexture asset. Also options for _InverseView matrix and _CameraNormalsTexture generation.
MIT License
575 stars 75 forks source link

cmd-drawMesh and depth texture #17

Closed BruceKristelijn closed 1 year ago

BruceKristelijn commented 1 year ago

I just tried switching to cmd-drawMesh but can't figure out how to get the depth texture. It seems that the screenmesh is included somehow?

Cyanilux commented 1 year ago

Hmm, perhaps make sure the shader used by the feature has ZWrite Off? (If it's a graph there should be an option for that in the Graph Settings (in 2021.2+ at least). Or use Transparent surface mode)

BruceKristelijn commented 1 year ago

I made sure to turn that off. It's odd shader worked on the 2022 and the master branch. Just found your shadergraph example. This seems to do what I need. I will try to turn this into a regular shader.