BLT-With-Graphics-Template/tests/include/shaders/test.vert

31 lines
490 B
GLSL
Raw Normal View History

2023-12-28 16:14:12 -05:00
#ifdef __cplusplus
#include <string>
const std::string shader_test_vert = R"("
2023-12-28 16:14:12 -05:00
#version 300 es
precision mediump float;
layout (location = 0) in vec3 vertex;
layout (location = 1) in vec2 uv_in;
out vec2 pos;
out vec2 uv;
layout (std140) uniform GlobalMatrices
{
mat4 projection;
mat4 ortho;
2023-12-28 16:14:12 -05:00
mat4 view;
mat4 pvm;
mat4 ovm;
2023-12-28 16:14:12 -05:00
};
uniform mat4 model;
2023-12-28 16:14:12 -05:00
void main() {
2024-01-01 22:15:30 -05:00
gl_Position = ortho * model * vec4(vertex, 1.0);
2023-12-28 16:14:12 -05:00
pos = vertex.xy;
uv = uv_in;
}
")";
#endif