22 lines
372 B
GLSL
22 lines
372 B
GLSL
|
#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;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
gl_Position = vec4(position.x, position.y, position.z, 1.0);
|
||
|
colors = color;
|
||
|
uvs = uv;
|
||
|
}
|
||
|
|
||
|
|
||
|
")";
|
||
|
#endif
|