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.
10 lines
257 B
10 lines
257 B
|
5 days ago
|
#version 460 core
|
||
|
|
layout (location = 0) in vec2 aPos; // the position variable has attribute position 0
|
||
|
|
|
||
|
|
uniform mat4 projection;
|
||
|
|
|
||
|
|
void main()
|
||
|
|
{
|
||
|
|
gl_Position = projection * vec4(aPos, 0.0, 1.0); // see how we directly give a vec3 to vec4's constructor
|
||
|
|
}
|