summaryrefslogtreecommitdiff
path: root/include/mbgl/shader/gaussian_shader.hpp
blob: 0f494f5c7eb6913a15b8ec45512d182670f4244c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef MBGL_RENDERER_SHADER_GAUSSIAN
#define MBGL_RENDERER_SHADER_GAUSSIAN

#include <mbgl/shader/shader.hpp>
#include <mbgl/shader/uniform.hpp>

namespace mbgl {

class GaussianShader : public Shader {
public:
    GaussianShader();

    void bind(char *offset);

    UniformMatrix<4>              u_matrix = {"u_matrix", *this};
    Uniform<std::array<float, 2>> u_offset = {"u_offset", *this};
    Uniform<int32_t>              u_image  = {"u_image",  *this};

private:
    int32_t a_pos = -1;
};

}

#endif