Log inGet started
Package

ao_filter.computeShader

Newest version

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

README.md

ao_filter

Lifts the resolved occlusion from the estimate's grid to the frame's resolution and writes the scene's occlusion channel (@scene.ao), which every lit material's indirect term reads at its own pixel: occlusion in r, the bent normal laid flat on the octahedron in g and b, and in a whether a bent normal was written. Each of the 4x4 grid taps around the pixel is weighed by a tent around the pixel's own grid position and by how close the depth of the surface it describes is to the pixel's, so occlusion does not cross a silhouette.

Includes

  • ao_grid

Bindings

namekind
scene_depthtexture_depth
ao_resolvedtexture2d
scene_occlusionstorage2d (rgba8)