14 lines
245 B
GLSL
14 lines
245 B
GLSL
|
#version 450 core
|
||
|
|
||
|
layout(location = 0) in vec2 Vertex;
|
||
|
|
||
|
layout(location = 0) out uint FragmentTexID;
|
||
|
layout(location = 1) out vec2 FragmentTexCoord;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
gl_Position=vec4(Vertex,0.0,1.0);
|
||
|
|
||
|
FragmentTexCoord=(Vertex+1.0)/2.0;
|
||
|
}
|