This code is about ambient occlusion from GPU Gems 2 & 3.
Please refer to this to see the details.
- 1 key: select dynamic ambient occlusion algorithm
- 2 key: select high quality ambient occlusion algorithm
- up key: increase the number of passes
- down key: decrease the number of passes
- r key: toggle robustness when high quality ambient occlusion algorithm is selected
- e(+left shift) key: increase(decrease) proximity tolerance when high quality ambient occlusion algorithm is selected
- d(+left shift) key: increase(decrease) distance attenuation when high quality ambient occlusion algorithm is selected
- t(+left shift) key: increase(decrease) triangle attenuation when high quality ambient occlusion algorithm is selected
- b key: toggle bent normal activation when calculating light effects
- l key: toggle light effects
- c key: capture the current frame
- SPACE key: pause rendering
- q/ESC key: exit