Skip to content

Commit 5012281

Browse files
authored
Update Custom-Pass-Injection-Points.md (#7116)
1 parent 9494838 commit 5012281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.unity.render-pipelines.high-definition/Documentation~/Custom-Pass-Injection-Points.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Unity triggers the following injection points in a frame, in order from top to b
1515
| **Injection point** | **Available buffers** | **Description** |
1616
| ------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
1717
| BeforeRendering | Depth (Write) | Unity clears the depth buffer immediately before this injection point. <br/><br/>In this injection point you can write to the depth buffer so that Unity doesn’t render depth-tested, opaque objects.<br/><br/>You can also clear the buffer you allocated or the `Custom Buffer`.<br/><br/>When you select this Injection point for a [FullscreenCustom Pass](Custom-Pass-Creating.md#Full-Screen-Custom-Pass), Unity assigns the camera color buffer as the target by default. |
18-
| AfterOpaqueDepthAndNormal | Depth (Read \| Write), Normal and roughness (Read \| Write), Motion Vectors (Read \| Write) | The available buffers for this injection point contain all opaque objects.<br/><br/>In this injection point you can modify the normal, roughness, depth, and motion vectors buffers. HDRP takes this into account in the lighting and the depth pyramid.<br/><br/>Normals and roughness are in the same buffer. You can use `DecodeFromNormalBuffer` and `EncodeIntoNormalBuffer` methods to read/write normal and roughness data. <br/><br/>The Motion Vectors buffer only includes object motion vector data when you use [forward rendering](Forward-And-Deferred-Rendering.md). To include object motion vector data in the Motion Vectors buffer when using deferred rendering, go to [Frame Settings](Frame-Settings.md) and enable **Depth Prepass within Deferred**. |
18+
| AfterOpaqueDepthAndNormal | Depth (Read \| Write), Normal and roughness (Read \| Write), Motion Vectors (Write) | The available buffers for this injection point contain all opaque objects.<br/><br/>In this injection point you can modify the normal, roughness, depth, and motion vectors buffers. HDRP takes this into account in the lighting and the depth pyramid.<br/><br/>Normals and roughness are in the same buffer. You can use `DecodeFromNormalBuffer` and `EncodeIntoNormalBuffer` methods to read/write normal and roughness data. <br/><br/>The Motion Vectors buffer only includes object motion vector data when you use [forward rendering](Forward-And-Deferred-Rendering.md). To include object motion vector data in the Motion Vectors buffer when using deferred rendering, go to [Frame Settings](Frame-Settings.md) and enable **Depth Prepass within Deferred**. |
1919
| BeforePreRefraction | Color (no pyramid \| Read \| Write), Depth (Read \| Write), Normal and roughness (Read), Motion Vectors (Read \| Write) | The available buffers for this injection point contain all opaque objects, the camera and object motion vectors, and the sky.<br/><br/> From this point, the motion vectors buffer is complete.<br/><br/>In this injection point you can render any transparent objects that require refraction. These objects are then included in the color pyramid that Unity uses for refraction when it renders transparent objects. |
2020
| BeforeTransparent | Color (Pyramid \| Read \| Write), Depth (Read \| Write), Normal and roughness (Read), Motion Vectors (Read) | The available buffers for this injection point contain:<br/>- All opaque objects.<br/>- Transparent PreRefraction objects.<br/>- Transparent objects with depth-prepass and screen space reflections (SSR) enabled.<br/><br/>In this Injection Point you can sample the color pyramid that Unity uses for transparent refraction. You can use this to create a blur effect. All objects Unity renders in this injection point will not be in the color pyramid.<br/><br/>You can also use this injection point to draw some transparent objects that refract the whole scene, like water. |
2121
| BeforePostProcess | Color (Pyramid \| Read \| Write), Depth (Read \| Write), Normal and roughness (Read), Motion Vectors (Read) | The available buffers for this injection point contain all geometry in the frame that uses High Dynamic Range (HDR). |

0 commit comments

Comments
 (0)