Log inGet started
Package

ao_denoise.computeShader

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

ao_denoise

Smooths the occlusion estimate over its 3x3 neighbourhood before the accumulation takes it, so a render with no history (a capture, a view's first render, a surface just uncovered) shows the estimate without the grain of its few samples per texel. A tap counts by its distance from the texel and by how much it is the same surface: its distance from the texel's tangent plane along the bent normal, relative to the distance from the camera, and the angle between the two bent normals. A tap across a silhouette or a crease weighs nothing. Sky and texels no estimator reached are left as they are.

The estimate is read from ao_in and written to ao_denoised, both in the estimate's layout: the bent normal, unnormalised, in xyz and the occlusion in w.

Includes

  • ao_grid

Bindings

namekind
scene_depthtexture_depth
ao_intexture2d
frame_cambuffer
ao_denoisedstorage2d (rgba16f)