UnityGame/Library/PackageCache/com.unity.render-pipelines.core/Documentation~/srp-custom.md
2024-10-27 10:53:47 +03:00

1.6 KiB

uid
um-srp-custom

Creating a custom render pipeline

Unity provides two prebuilt render pipelines based on the Scriptable Render Pipeline (SRP): the High Definition Render Pipeline (HDRP), and the Universal Render Pipeline (URP). HDRP and URP offer extensive customization options; however, if you want even more control over your rendering pipeline, you can create your own custom render pipeline based on SRP.

Page Description
Create a custom Scriptable Render Pipeline Install the packages needed for a custom render pipeline based on SRP, or create a custom version of URP or HDRP.
Create a Render Pipeline Asset and Render Pipeline Instance in a custom render pipeline Create scripts that inherit from RenderPipelineAsset and RenderPipeline, then create a Render Pipeline Asset.
Create a simple render loop in the Scriptable Render Pipeline Create a simple loop to clear the render target, perform a culling operation, and draw geometry.
Extend a Scriptable Render Pipeline with command buffers or API calls Use the ScriptableRenderContext API to configure and schedule rendering commands.
Scriptable Render Pipeline callbacks reference Learn about the callbacks you can use to call your C# code at specific times.

Additional resources