• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • DitherEffect
  • DitherEffect Class

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

    Header: #include <DitherEffect>
    Inherits: BasePostEffect

    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.