Parks-n-Rec/include/parks/shader/basic_shader.vert

29 lines
468 B
GLSL
Raw Normal View History

2023-06-12 20:00:53 -04:00
#ifdef __cplusplus
#include <string>
static std::string BasicShaderVertex = R"("
#version 460 core
layout (location = 0) in vec3 position;
layout (location = 1) in vec3 color;
layout (location = 2) in vec2 uv;
out vec3 colors;
out vec2 uvs;
2023-06-15 21:16:48 -04:00
layout (std140) uniform Matrices
{
mat4 perspective;
mat4 view;
mat4 pvm;
};
2023-06-12 20:00:53 -04:00
void main()
{
2023-06-15 21:16:48 -04:00
gl_Position = pvm * vec4(position.x, position.y, position.z, 1.0);
2023-06-12 20:00:53 -04:00
colors = color;
uvs = uv;
}
")";
#endif