X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=dither_effect.h;fp=dither_effect.h;h=535b783959a4a3355d16873ddbfe27f734baede6;hp=943220aed55ad3dc524e4404b06ef2838f917831;hb=b10c546f579c7ccb5939161e61a71cd18a3f9bbd;hpb=caa05550e868db406e4b54e69d60b5573f59cb60 diff --git a/dither_effect.h b/dither_effect.h index 943220a..535b783 100644 --- a/dither_effect.h +++ b/dither_effect.h @@ -52,6 +52,11 @@ public: virtual std::string effect_type_id() const { return "DitherEffect"; } std::string output_fragment_shader(); + // Note that if we did error diffusion, we'd actually want to diffuse the + // premultiplied error. However, we need to do dithering in the same + // space as quantization, whether that be pre- or postmultiply. + virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; } + void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num); private: