Version: 2020.2
Using the Built-in Render Pipeline
Forward rendering path

Rendering paths in the Built-in Render Pipeline

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 Rendering

Forward Rendering is the default rendering path in the Built-in Render Pipeline. It is a general-purpose rendering path.

Real-time lights are very expensive to render in forward rendering. To offset this cost, you can choose how many lights Unity should render per-pixel at any one time. Unity renders the rest of the lights in the Scene at lower fidelity: per-vertex, or per-object.

If your project does not use a large amount of real-time lights, or if lighting fidelity is not important to your project, then this rendering path is likely to be a good choice for your project.

Para más detalles vea la Forward Rendering page.

Deferred Shading

Deferred Shading is the rendering path with the most lighting and shadow fidelity in the Built-in Render Pipeline.

Deferred shading requires GPU support, and has some limitations. It does not support semi-transparent objects (Unity renders these using forward rendering), orthographic projection (Unity uses forward rendering for these Cameras), or hardware anti-aliasing (although you can use a post-process effect to achieve similar results). It has limited support for culling masks, and treats the Renderer.receiveShadows flag as always true.

If your project has a large number of real-time lights and requires a high level of lighting fidelity, and your target hardware supports deferred shading, then this rendering path might be a good choice for your project.

For more details, including advice on this rendering path’s limitations, see the Deferred Shading page.

Legacy Deferred

Legacy Deferred (light prepass) is similar to Deferred Shading, except it uses a different technique with different trade-offs. It does not support the Unity 5 physically based standard shader.

Para más detalles vea la Deferred Lighting page.

Legacy Vertex Lit

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.

Para más detalles vea la Vertex Lit page

Rendering Path comparison

Deferred Forward Legacy Deferred Vertex Lit
Características
Una iluminación Per-Píxel (normal maps, light cookies) -
Real-time shadows Con advertencias -
Reflection Probes - -
Depth & Normal Buffers Render passes adicionales -
Partículas Suaves - -
Semi-transparent objects - -
Anti-Aliasing - -
Máscaras de Sacrificio de Luz (Light Culling Masks) Limitado Limitado
Fidelidad de la Iluminación Todos per-píxel Algunos per-píxel Todos per-píxel TODOS per-vértice
Rendimiento
Costo de una luz per-píxel Número de píxeles que ilumina Número de píxeles * Número de objetos que ilumina Número de píxeles que ilumina -
Número de veces que los objetos se procesan normalmente 1 Cantidad de luces por-pixel 2 1
Overhead for simple Scenes Alto Ninguno Medio Ninguno
Soporte de Plataforma
PC (Windows/Mac) Shader Model 3.0+ & MRT Todos Shader Model 3.0+ Todos
Móvil (iOS/Android) OpenGL ES 3.0 & MRT, Metal (en dispositivos con A8 o posterior SoC) Todos OpenGL ES 2.0 Todos
Consolas XB1, PS4 Todos XB1, PS4, 360 -
Using the Built-in Render Pipeline
Forward rendering path
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961