X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect.h;h=cbf6f3a675e526066471a8548511c530afbda8a5;hp=ef58392715ea7ade816bfc440c1eec65bd3ee410;hb=9b4350ffc9c559b6ed666e1858ec7396455ff9ab;hpb=e655afd53f2e56938bd4e7f72640eff56ef4a1ee diff --git a/effect.h b/effect.h index ef58392..cbf6f3a 100644 --- a/effect.h +++ b/effect.h @@ -17,6 +17,7 @@ #include #include "opengl.h" +#include "util.h" class EffectChain; class Node; @@ -45,6 +46,7 @@ void set_uniform_float_array(GLuint glsl_program_num, const std::string &prefix, void set_uniform_vec2(GLuint glsl_program_num, const std::string &prefix, const std::string &key, const float *values); void set_uniform_vec3(GLuint glsl_program_num, const std::string &prefix, const std::string &key, const float *values); void set_uniform_vec4_array(GLuint glsl_program_num, const std::string &prefix, const std::string &key, const float *values, size_t num_values); +void set_uniform_mat3(GLuint glsl_program_num, const std::string &prefix, const std::string &key, const Matrix3x3 matrix); class Effect { public: @@ -87,7 +89,7 @@ public: // 2. You rely on previous effects, possibly including gamma // expansion, to happen pre-filtering instead of post-filtering. // (This is only relevant if you actually need the filtering; if - // you sample on whole input pixels only, it makes no difference.) + // you sample 1:1 between pixels and texels, it makes no difference.) // // Note that in some cases, you might get post-filtered gamma expansion // even when setting this option. More specifically, if you are the