#ifdef __cplusplus #include const std::string shader_2d_font_vert = R"(" #version 300 es precision mediump float; layout (location = 0) in vec4 vertex; out vec2 uv; layout (std140) uniform GlobalMatrices { mat4 projection; mat4 ortho; mat4 view; mat4 pvm; mat4 ovm; }; uniform float z_index; void main() { gl_Position = ovm * vec4(vertex.xy, z_index, 1.0); uv = vertex.zw; } ")"; #endif