pixelNoise function

double pixelNoise(
  1. ShaderBindings b,
  2. double x,
  3. double y
)

PixelNoise from lib/blue_noise.glsl: the blue noise while a temporal resolve runs, bayerCell otherwise.

Implementation

double pixelNoise(ShaderBindings b, double x, double y) =>
    b.vec4('NoiseInfo', 'noise', Vector4.zero()).x > 0.5
    ? blueNoise(b, x, y)
    : bayerCell(x, y);