Attaches this behavior to the specified camera.
The camera to attach the behavior to.
true if the behavior was successfully attached to the camera, otherwise false.
Detaches this behavior from the specified camera.
The camera to detach this behavior from.
true if the behavior was successfully detached from the camera, otherwise false.
This class sets up the postprocess pipeline for achieving the SSAO effect First, the current screen is written to a buffer (screenBlit) Secondly, SSAO for the current screen is calculated using the depth buffer Thirdly, the contents of the SSAO post process, which is what is currently bound to the screen is blurred first horizontally and then the blurred result is further blurred vertically Lastly the SSAO buffer is used to darken the color of the screen buffer