Search Issue Tracker
By Design
By Design in 2023.3.X
Votes
0
Found in
2022.3.11f1
2023.1.16f1
2023.2.0b13
2023.3.0a9
Issue ID
UUM-53136
Regression
No
RTHandle does not scale down when scaled up
How to reproduce:
1. Open the attached project "Custom Post Processing.zip"
2. In the Game view window change the Display resolution to "Full HD"
Expected results: Fog aligns objects in the Game view
Actual results: Fog is misaligned with the objects
Reproducible with: 2022.3.11f1, 2023.1.16f1, 2023.2.0b13, 2023.3.0a9
Could not test with: 2021.3.31f1 (the Scene is rendered pink)
Reproducible on: Windows 11 22H2
Not reproducible on: No other environment tested
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “FMOD failed to set the software format to the custom sample rate…” warnings are thrown as System Sample Rate value is being changed in Audio section of Project Settings window
- VFX Marquee selection does match the visual indicator
- “Invalid AABB aabb” errors are spammed when “Infinity” value is entered in Collider Component fields
- Editor Role does not sync with the MPPM Play Mode Scenario Role when entering Play mode
- Long asset names cause overlap with the “Find” function in search result tabs
Resolution Note:
The issue the user is seeing is because they are not using the right APIs to achieve what they want with Custom Post Processes.
- HDUtils.DrawFullScreen should be used instead of CommandBuffer.Blit to make sure the destination viewport is the right one.
- In the Shader Graph, the input color should be retrieved from the "HD Sample Buffer" node using the Post Process source (this will scale the UVs according to the current RTHandle scale).
By doing this, all scaling issues should be fixed in this use case.
More info in the Documentation: https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@17.0/manual/Custom-Post-Process.html
Resolution Note (2023.3.X):
The issue the user is seeing is because they are not using the right APIs to achieve what they want with Custom Post Processes.
- HDUtils.DrawFullScreen should be used instead of CommandBuffer.Blit to make sure the destination viewport is the right one.
- In the Shader Graph, the input color should be retrieved from the "HD Sample Buffer" node using the Post Process source (this will scale the UVs according to the current RTHandle scale).
By doing this, all scaling issues should be fixed in this use case.
More info in the Documentation: https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@17.0/manual/Custom-Post-Process.html