Log inGet started
Package

ssr_noise.shaderModule

Newest version

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

README.md

ssr_noise

The per-pixel noise the screen-space reflection passes draw from, and how it moves from frame to frame.

  • ign(px, frame): interleaved gradient noise, one value in [0, 1) per pixel, moved on by the golden-ratio step each frame. The resolve turns its gather disk by it.
  • lobe_noise(px, frame): the pair the trace draws a lobe sample from. Each of the two values starts at its own per-pixel offset and moves on by its own step of the R2 sequence, so the pairs a still pixel draws over its frames cover the unit square evenly and frames far apart draw unrelated pairs.

Included by ssr_common, and by any shader that needs only the noise: it declares no binding.