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

 

 

2.) Horizon Based SSAO Shader

 

3.) other some ssao shaders I had tried

 

 

you can download the source code from here.

posted @ 2010-04-07 00:01  vibilin  阅读(683)  评论(0编辑  收藏  举报