Skip to main content

ssao_kernel

Function ssao_kernel 

Source
pub fn ssao_kernel(n: usize) -> OMatrix<f32, Dyn, Const<3>>
Expand description

Returns a SSAO kernel matrix

The resulting matrix is a list of row vectors representing points in a hemisphere with a maximum radius of 1.0, used for sampling the depth buffer.

It should be reoriented based on the surface normal.