mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-12 11:33:22 +08:00
Initial commit, all code samples with working CMake script for VS/Windows.
This commit is contained in:
11
src/1.getting_started/3.shaders/basic.vs
Normal file
11
src/1.getting_started/3.shaders/basic.vs
Normal file
@@ -0,0 +1,11 @@
|
||||
#version 330 core
|
||||
layout (location = 0) in vec3 position;
|
||||
layout (location = 1) in vec3 color;
|
||||
|
||||
out vec3 ourColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(position, 1.0f);
|
||||
ourColor = color;
|
||||
}
|
||||
Reference in New Issue
Block a user