graphics
[HDRP] Fix Black Output in Fullscreen Shader Graphs
Solution
Unity 2021.3.x - Unity 6.3.x
Published 10 days ago
When creating a custom fullscreen post-processing effect in HDRP, using the HD Scene Color node results in a black output. This occurs because HD Scene Color provides access to the raw scene color before post-processing, which is frequently unavailable or returns null data at the specific injection point of your shader graph in the post-processing stack.
To fix black frames in HDRP fullscreen effects, replace HD Scene Color with the HD Sample Buffer node configured to Post Process Input.
To resolve a black screen when sampling the camera color buffer in your shader graph, integrate the HD Sample Buffer node.
- Open your shader graph and locate the
HD Scene Colornode. - Delete the
HD Scene Colornode as it is designed for transparent object logic rather than fullscreen effects. - Create a new HD Sample Buffer node.
- In the
Graph Inspector, set the Buffer property of the HD Sample Buffer toPost Process Inputto capture the current frame buffer. - Connect the output of the HD Sample Buffer to your effect logic.
- In the
Volumecomponent, ensure theInjection Pointis set toAfter Post Processif the effect must appear over all other scene elements.
Additional Tips
- Verify that Opaque Objects and Transparent Objects are enabled in the
HDRP Default Settingsif the buffer still appears empty. - Ensure the
Custom Post Processeffect is correctly added to theVolume Profilein your scene.
Related Posts Haven't quite found a solution to your problem? We think these posts might help you.
[Animator] Erases MaterialPropertyBlock: Restore Visuals[URP] Optimize Rendering Performance with Shader Variant Prewarming[HDRP Water] Eliminate Visual Glitches: Subsurface Control with UnderwaterMask
Content inspired by a Unity discussion post.