Files
forge-steel/src/constants.h
T

22 lines
598 B
C

#include "types.h"
#ifndef CONSTANTS_H
#define CONSTANTS_H
static char *vertex_shader_text =
"#version 460\n"
"const mat4 mvp = "
"{{2.,0.,0.,0.},{0.,2.,0.,0.},{0.,0.,2.,0.},{-1.,-1.,1.,1.}};\n"
"in vec2 vPos;\n"
"out vec2 vUV;\n"
"void main()\n"
"{\n"
" gl_Position = mvp * vec4(vPos, 0.0, 1.0);\n"
" vUV = vPos;\n"
"}";
static const Vertex vertices[6] = {{{0.0f, 0.0f}}, {{0.0f, 1.0f}},
{{1.0f, 1.0f}}, {{0.0f, 0.0f}},
{{1.0f, 1.0f}}, {{1.0f, 0.0f}}};
#endif /* CONSTANTS_H */