Log inGet started
Package

stable_surface.computeShader

Newest version

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

README.md

stable_surface

The G-buffer surface temporal antialiasing restates beside its depth, on the deferred path. stable_depth keeps, for every pixel of a still view, the depth sample taken nearest the pixel centre; the normal and the material an effect after the reconstruction reads have to describe that same sample, or an outline found in the normals and a fill read from the base colour move with the raster while the depth and the picture hold still.

Where stable_depth kept the sample it held (its output's z is 1), this keeps the normal and the material it held beside it; everywhere else it takes this render's. Two fragment passes then hand both back to the frame (@scene.normal, @scene.material).

Bindings

namekind
stable_choicetexture2d
scene_normaltexture2d
scene_materialtexture2d (uint)
normal_historytexture2d
material_historytexture2d
surface_statebuffer
normal_outstorage2d (rgba16f)
material_outstorage2d (rgba16f)

surface_state is the normal history target's state buffer, written by the engine before each render of a view: x whether the histories hold that view's previous result. material_out holds the material's four integer lanes as floats, which the restatement into @scene.material rounds back to integers.