-
Notifications
You must be signed in to change notification settings - Fork 849
[HDRP] Add custom pass buffer scaling functions #5809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
3b25f44
824a7a2
f06b08c
fd2561c
6a8fb21
c55968f
9a1b8a7
8fe52ec
dcc8ea2
b14d51c
c30c236
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -463,6 +463,11 @@ You can also load custom buffers using the following functions: | |
- `LoadCustomColor(uint2 pixelCoords)` | ||
- `LoadCustomDepth(uint2 pixelCoords)` | ||
|
||
Note that depending on the injection point used for the Fullscreen custom pass, sampling the custom buffer can result in incorrect scaling. Thus it's recommended to use these functions instead: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which injection points cause incorrect scaling? I think it would be helpful to the user to be specific here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These injection points were causing scaling issues:
|
||
|
||
- `CustomPassSampleCustomColor(float2 uv)` | ||
- `CustomPassLoadCustomColor(uint2 pixelCoords)` | ||
|
||
HDRP sets the custom pass target buffers to the Camera buffers by default. However, you can select a custom buffer in the UI of the Custom Pass. To do this, go to your Custom Pass component and change the **Target Color Buffer** or **Target Depth Buffer** properties. | ||
|
||
To change the buffer format of the Custom Pass component in your HDRP asset, go to **Rendering > Custom Pass > Custom Buffer Format** and select one of the following formats from the drop down menu: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add it to what's new