Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alelievr authored Jan 23, 2023
1 parent d392da5 commit c29509d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,6 @@ https://user-images.githubusercontent.com/6877923/195407733-1e73b63c-5ba6-488f-8

Duing HDRP rendering, you only have access to the depth buffer that contains all opaque objects, the depth texture is not updated when rendering transparent with depth pre/post passes.

This custom pass copies the current camera depth (up to date with the current injection point) to the custom depth buffer. The custom depth buffer can then be sampled in a fullscreen shader graph using the custom depth node.
This custom pass copies the current camera depth (up to date with the current injection point) to the custom depth buffer. The custom depth buffer can then be sampled in a fullscreen shader graph using the custom depth node.

Source file for this effect: [CurrentDepthToCustomDepth.cs](https://github.com/alelievr/HDRP-Custom-Passes/blob/master/Assets/CustomPasses/CurrentDepthToCustomDepth/CurrentDepthToCustomDepth.cs) and [CurrentDepthToCustomDepth.shader](https://github.com/alelievr/HDRP-Custom-Passes/blob/master/Assets/CustomPasses/CurrentDepthToCustomDepth/CurrentDepthToCustomDepth.shader).

0 comments on commit c29509d

Please sign in to comment.