Skip to content

LibraryLiyuan/HZB_SSGI

Repository files navigation

HZB_SSGI

基于 HZB 的屏幕空间全局光照 (SSGI) 渲染

实现清单:

  • HZB生成
  • RayTracing函数,SSGI
  • 联合双边滤波单帧降噪
  • Temporal累积
  • A-Trous Wavelet 加速单帧降噪
  • DLC:实现HZB_SSR

效果展示

1SPP, 已经关闭场景里面的Luman GI和Luman Reflection

效果对比GIF

HZB_SSGI

未开启SSGI

image-20260105171642397

SSGI Pass

20260105-171707

SSGI Pass + Denoise Pass

20260105-171750

RenderDoc抓帧分析

先看看UE的GPU Visualizer的Pass截图 image-20260105172210042

UE的GPU Visualizer的抓帧

可以看到,HZB_SSGI插入到PostProcessing中,然后先生成了HZB,然后进行了SSGI Trace Pass生成带有噪声的SSGI效果,然后进行了Spatial Denosie对图片进行降噪,然后进行了Temporal通过多帧插值进行平滑噪点,最后进行Composite,颜色混合输出。

HZB Texture

进行抓帧查看中间结果的图片,先看看HZB Texture Mip0的时候的图片。

image-20260105172829592

HZB-Mip 0

image-20260105173019962

HZB-Mip 4

image-20260105173033652

HZB-Mip 7

SSGI Pass

image-20260105173942906

SSGI Raw Ouput

可以看到噪点非常严重。

Denoise Pass

image-20260105174004197

SSGI Denoise Ouput

Temporal Pass

image-20260105174056455

SSGI Temporal Ouput

About

Hi-Z Buffer SSGI

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors