DitherEffect

Post effect that adds dither noise before the output is quantized, to break up banding.

Declared in src/libs/libconstruct/construct/post/DitherEffect.hpp
Inherits BasePostEffect
Group construct

Detailed description

Implementation modeled on ExposureEffect — both carry a tiny runtime-mutable UBO that the fragment shader reads each frame. The shader is generic across all four modes (Off / Triangular / Bayer / IGN); the UBO mode int selects which branch to evaluate.

In this section