mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 12:03:22 +08:00
1. Lower OpenGL demands: the demo works fine with v4.1. No need to require v4.6 which is not available on mac os. 2. Use actual framebuffer size to fix viewport issues on retina displays.
11 lines
171 B
GLSL
11 lines
171 B
GLSL
#version 410 core
|
|
layout (location = 0) in vec3 aPos;
|
|
|
|
uniform mat4 view;
|
|
uniform mat4 projection;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = projection * view * vec4(aPos, 1.0);
|
|
}
|