Simplify shader compilation step
This commit is contained in:
8
data/shaders/basic.frag
Normal file
8
data/shaders/basic.frag
Normal file
@@ -0,0 +1,8 @@
|
||||
#version 450
|
||||
|
||||
layout(location = 0) in vec2 fragCoord;
|
||||
layout(location = 0) out vec4 fragColor;
|
||||
|
||||
void main() {
|
||||
fragColor = vec4(fragCoord, 0.0, 1.0);
|
||||
}
|
8
data/shaders/basic.vert
Normal file
8
data/shaders/basic.vert
Normal file
@@ -0,0 +1,8 @@
|
||||
#version 450
|
||||
|
||||
layout(location = 0) in vec2 inCoord;
|
||||
layout(location = 0) out vec2 outCoord;
|
||||
|
||||
void main() {
|
||||
outCoord = inCoord;
|
||||
}
|
Reference in New Issue
Block a user