文档

Unity Engine

Unity Engine

Introduction to rendering paths in the Built-In Render Pipeline

Learn about how rendering paths have different capabilities and performance characteristics, and understand the difference between Forward, Deferred and Legacy Vertex Lit.
阅读时间2 分钟最后更新于 16 天前

Unity's Built-In Render Pipeline supports different rendering paths. A rendering path is a series of operations related to lighting and shading. Different rendering paths have different capabilities and performance characteristics. Deciding on which rendering path is most suitable for your Project depends on the type of Project, and on the target hardware.
You can choose the rendering path that your Project uses in the Graphics window, and you can override that path for each Camera.
If the GPU on the device running your Project does not support the rendering path that you have selected, Unity automatically uses a lower fidelity rendering path. For example, on a GPU that does not handle Deferred Shading, Unity uses Forward Rendering.
  • Forward is the default rendering path in the Built-in Render Pipeline. It is a general-purpose rendering path.
  • Deferred is the rendering path with the most lighting and shadow fidelity in the Built-in Render Pipeline.
  • Legacy Vertex Lit is the rendering path with the lowest lighting fidelity and no support for real-time shadows. It is a subset of the Forward rendering path.

Rendering Path comparison

Deferred

Forward

Vertex Lit

Features
Per-pixel lighting (normal maps, light cookies)YesYes-
Real-time shadowsYesWith caveats-
Reflection ProbesYesYes-
Depth & Normal BuffersYesAdditional render passes-
Soft ParticlesYes--
Semi-transparent objects-YesYes
Anti-Aliasing-YesYes
Light Culling MasksLimitedYesYes
Lighting FidelityAll per-pixelSome per-pixelAll per-vertex
Performance
Cost of a per-pixel LightNumber of pixels it illuminatesNumber of pixels * Number of objects it illuminates-
Number of times objects are normally rendered1Number of per-pixel lights1
Overhead for simple ScenesHighNoneNone
Platform Support
PC (Windows/Mac)Shader Model 3.0+ & MRTAllAll
Mobile (iOS/Android)OpenGL ES 3.0 & MRT, MetalAllAll
ConsolesXB1, PS4All-