I would like to render a Unity terrain component using two different shaders in URP. One shader for standard rendering and second shader for rendering inflate outline for the terrain.
As far as I know, the only way to render a mesh using two shaders in URP is assigning two distinct materials to a mesh renderer.
I would like to use the same approach for Unity terrain. Unfortunately as far as I can see, there is only a single slot for material in terrain settings. Is it possible to assign two or more materials to Unity terrain somehow?
You can do it with a Render Objects Render Feature, but the limitation is that because you can’t assign a different layer to terrain details vs. the terrain itself, your outline would apply to terrain details also. That said, if that wouldn’t be a roadblock in your particular use case, this might be a solution (as I’ve also noticed we can’t assign multiple materials to the same terrain right now either, afaik). No response to my inquiry about this, yet: https://forum.unity.com/threads/how-to-set-a-different-layer-for-terrain-details-vs-terrain-gameobject-layer.1482885/