stable_surface.computeShader
- README.md1.4 KB
- bindings.yaml460 B
- shader.wgsl1.5 KB
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
| name | kind |
|---|---|
stable_choice | texture2d |
scene_normal | texture2d |
scene_material | texture2d (uint) |
normal_history | texture2d |
material_history | texture2d |
surface_state | buffer |
normal_out | storage2d (rgba16f) |
material_out | storage2d (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.