Post effect that adds dither noise before the output is quantized, to break up banding. More...
| Header: | #include <DitherEffect> |
| Inherits: | BasePostEffect |
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.