// 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; }
+ virtual bool one_to_one_sampling() const { return true; }
void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
int texture_width, texture_height;
GLuint texnum;
+ float uniform_round_fac, uniform_inv_round_fac;
+ float uniform_tc_scale[2];
+ GLint uniform_dither_tex;
};
} // namespace movit