URP Camera.RenderWithShader(..) doesn't seem to work?
I work on a Unity Asset and for one of the effects we have, we need to be able to create a replacement shader to make some scene calculations and render a data texture.
For the past few years this code has worked fine using the replacement shader API (Camera.RenderWIthShader(..)), however with Universal Render Pipeline it appears to have no effect. When I view the texture that the camera is rendering, it's just a standard camera render... that didn't use our shader at all. I've verified our shader works in URP by tossing it on a material in the scene... but the replacement aspect doesn't seem to work.
Does anyone have any ideas on how to get replacement shaders to work programmatically for URP? We need to be able to control this all through code as it's deployed through a Unity Asset.
Your answer
Follow this Question
Related Questions
See-Through effect for top-down game (Performance issues) 0 Answers
Hair and eye shader? 0 Answers
[URP] Transp Shadergraph has shadows? 2 Answers
Effects that I made in a HDRP project don't work in a URP project. 0 Answers
How to hide objects inside of- or behind another transparent object? 2 Answers