Organize assets
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#version 450
|
||||
|
||||
in vec3 color;
|
||||
out vec4 fragColor;
|
||||
|
||||
void main() {
|
||||
fragColor = vec4(color, 1.0);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
#version 450
|
||||
|
||||
in vec3 pos;
|
||||
in vec3 col;
|
||||
|
||||
uniform mat4 VP;
|
||||
out vec3 color;
|
||||
|
||||
void main() {
|
||||
color = col;
|
||||
gl_Position = VP * vec4(pos, 1.0);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
#version 450
|
||||
|
||||
in vec3 color;
|
||||
out vec4 fragColor[2];
|
||||
|
||||
void main() {
|
||||
fragColor[0] = vec4(1.0, 1.0, 0.0, 1.0);
|
||||
fragColor[1] = vec4(color, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user