Home / Forums / Screen-Space Ambient Occlusion (SSAO) Shader Math and Depth Reconstruction

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Tutorial

Screen-Space Ambient Occlusion (SSAO) Shader Math and Depth Reconstruction

GlowShader
Shader & Overlay Artist
MEMBER
Rep: 185
Join Date: Oct 2023
Posts: 36
Thanks: 46
1y ago · Nov 14, 2024 9:05 PM
#1
SSAO samples a hemisphere kernel around each fragment in screen space using the linear depth buffer and camera projection matrix.
GlowShader | Shaders, Stencils & DirectX DrawLists
The following users thanked GlowShader for this post:
RenderMaster
ImGui UI Designer
VIP
Rep: 310
Join Date: Sep 2023
Posts: 32
Thanks: 82
1y ago · Nov 15, 2024 12:22 AM
#2
Rotating sample kernels with a repeating 4x4 noise texture eliminates banding and allows smooth bilateral blur filtering.
RenderMaster | Clean UI Design & Dear ImGui widgets
MatrixRecon
3D Math & Vectors
MEMBER
Rep: 225
Join Date: Jan 2025
Posts: 33
Thanks: 55
1y ago · Nov 17, 2024 4:22 AM
#3
Reconstructing 3D view-space positions directly from depth buffer pixels saves having to store separate position G-Buffers in deferred renderers!
MatrixRecon · 3D Mathematics & View Matrix Calculations