summaryrefslogtreecommitdiff
path: root/include/mbgl/shader/gaussian_shader.hpp
blob: a4b9d09f3a4c5592116e6211c6623665630227a2 (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
26
27
28
29
#ifndef MBGL_RENDERER_SHADER_GAUSSIAN
#define MBGL_RENDERER_SHADER_GAUSSIAN

#include <mbgl/shader/shader.hpp>

namespace mbgl {

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

    void bind(char *offset);

    void setImage(int32_t image);
    void setOffset(const std::array<float, 2>& offset);

private:
    int32_t a_pos = -1;

    int32_t image = 0;
    int32_t u_image = -1;

    std::array<float, 2> offset = {{}};
    int32_t u_offset = -1;
};

}

#endif