2023-02-08 23:23:42 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <string>
|
|
|
|
std::string shader_test_vert = R"("
|
2023-02-11 16:26:47 -05:00
|
|
|
#version 300 es
|
|
|
|
precision mediump float;
|
2023-02-08 23:23:42 -05:00
|
|
|
|
2023-02-11 16:26:47 -05:00
|
|
|
layout (location = 0) in vec3 vertex;
|
2023-02-08 23:23:42 -05:00
|
|
|
|
2023-02-11 16:26:47 -05:00
|
|
|
layout (std140) uniform StandardMatrices
|
|
|
|
{
|
|
|
|
mat4 projection;
|
|
|
|
mat4 view;
|
|
|
|
// projection view matrix
|
|
|
|
mat4 pvm;
|
|
|
|
};
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
gl_Position = projection * view * vec4(vertex.x, vertex.y, vertex.z, 1.0);
|
2023-02-08 23:23:42 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
")";
|
|
|
|
#endif
|