Added own shaders
This commit is contained in:
4
shaders/README.md
Normal file
4
shaders/README.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# Attributes
|
||||
|Index|Description|
|
||||
|---|---|
|
||||
|0|Position|
|
||||
7
shaders/basic.frag
Normal file
7
shaders/basic.frag
Normal file
@@ -0,0 +1,7 @@
|
||||
#version 330 core
|
||||
|
||||
layout(location = 0) out vec4 color;
|
||||
|
||||
void main() {
|
||||
color = vec4(1.0f, 1.0f, 0.0f, 1.0f);
|
||||
}
|
||||
7
shaders/basic.vert
Normal file
7
shaders/basic.vert
Normal file
@@ -0,0 +1,7 @@
|
||||
#version 330 core
|
||||
|
||||
layout(location = 0) in vec3 position;
|
||||
|
||||
void main() {
|
||||
gl_Position = vec4(position, 1.0f);
|
||||
}
|
||||
Reference in New Issue
Block a user