You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
467 B
20 lines
467 B
4 years ago
|
#version 450 core
|
||
|
|
||
|
layout(location = 0) in vec3 a_position;
|
||
|
layout(location = 1) in vec4 a_color;
|
||
|
layout(location = 2) in vec2 a_textureCoordinates;
|
||
4 months ago
|
layout(location = 3) in uint a_textureIndex;
|
||
4 years ago
|
|
||
|
out vec4 v_color;
|
||
|
out vec2 v_textureCoordinates;
|
||
4 months ago
|
out flat uint v_textureIndex;
|
||
4 years ago
|
|
||
|
void main()
|
||
|
{
|
||
|
v_color = a_color;
|
||
|
v_textureCoordinates = a_textureCoordinates;
|
||
|
v_textureIndex = a_textureIndex;
|
||
4 months ago
|
// Vclip = Model transform * Vlocal
|
||
|
gl_Position = vec4(a_position, 1.0f);
|
||
4 years ago
|
}
|