Added written basic shaders
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1,3 @@
|
||||
!build/shader.v
|
||||
!build/shader.f
|
||||
build/
|
||||
|
||||
6
build/shader.f
Normal file
6
build/shader.f
Normal file
@@ -0,0 +1,6 @@
|
||||
#version 460 core
|
||||
out vec4 FragColor;
|
||||
void main(){
|
||||
|
||||
FragColor = vec4(1.0f, 0.5f, 0.2f, 1.0f);
|
||||
}
|
||||
7
build/shader.v
Normal file
7
build/shader.v
Normal file
@@ -0,0 +1,7 @@
|
||||
#version 460 core
|
||||
layout (location = 0) in vec3 aPos;
|
||||
void main(){
|
||||
|
||||
gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user