ExtendingTheDefaultRenderer - johnsietsma/ExtendingLWRP GitHub Wiki
Although the existing renderer is a bit of black box, there are a number of ways to change or extend it. Some of these techniques are still useful in LWRP, so let's have a look at them.
Extra Cameras
Add and extra camera to the scene use it to create a RenderTexture. For example, render a particle system to a RenderTexture and use that as heightmap for a simple fluid sim.
Shaders
Vertex, fragment and geometry shaders.
Camera call backs
- OnPre/Post Render etc. Used for full-screen effects, switching render properties before a render, manual drawing.
Manual Drawing
Graphics.DrawMesh, etc. Useful for drawing large numbers of meshes without GameObject costs. Can be used to draw from compute.
Command Buffers
Command Buffers are used to inject drawing commands at various stages of the rendering pipeline.