summaryrefslogtreecommitdiff
path: root/src/mbgl/shaders/debug.cpp
blob: 9012cfa7550e9db7d5f44f579cb3e6fc9cd5a26c (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
// NOTE: DO NOT CHANGE THIS FILE. IT IS AUTOMATICALLY GENERATED.

#include <mbgl/shaders/debug.hpp>

namespace mbgl {
namespace shaders {

const char* debug::name = "debug";
const char* debug::vertexSource = R"MBGL_SHADER(
attribute vec2 a_pos;

uniform mat4 u_matrix;

void main() {
    gl_Position = u_matrix * vec4(a_pos, 0, 1);
}

)MBGL_SHADER";
const char* debug::fragmentSource = R"MBGL_SHADER(
uniform highp vec4 u_color;

void main() {
    gl_FragColor = u_color;
}

)MBGL_SHADER";

} // namespace shaders
} // namespace mbgl