SSAO (Screen Space Ambient Occlusion) with D3DX10

Last time, I presented a SSAO code with Direct3D 9.0 and hlsl shader 2.x, but the effect was not so good. So, this time I rewrite the SSAO code base on my new framework which is  constructed of the Direct3d 10 API.  My Demo show two SSAO effects, one is use the SSAO shader in Crysis; anothor is a Horizon Based SSAO which you can find the detail in the book of ShaderX 7.

 

screen shot:

1.) SSAO shader in Crysis

 SSAO (Screen Space Ambient Occlusion) with D3DX10_第1张图片

 

2.) Horizon Based SSAO Shader

SSAO (Screen Space Ambient Occlusion) with D3DX10_第2张图片

 

3.) other some ssao shaders I had tried

 SSAO (Screen Space Ambient Occlusion) with D3DX10_第3张图片

SSAO (Screen Space Ambient Occlusion) with D3DX10_第4张图片

 

you can download the source code from here.

你可能感兴趣的:(screen)