Added default shader
This commit is contained in:
1 parent
5d32976869
commit
dd4071c29e
3 files changed
+26
-1
No files matched your search
@@ -0,0 +1,9 @@
|
||||
#version 330 core
|
||||
|
||||
out vec4 color;
|
||||
|
||||
in vec2 texCoord;
|
||||
|
||||
void main() {
|
||||
color = vec4(1.0, 0.0, 1.0, 1.0);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
#version 330 core
|
||||
|
||||
layout(location = 0) in vec3 pos;
|
||||
layout(location = 1) in vec2 texCoords;
|
||||
|
||||
uniform mat4 model;
|
||||
uniform mat4 view;
|
||||
uniform mat4 proj;
|
||||
|
||||
out vec2 texCoord;
|
||||
|
||||
void main() {
|
||||
//gl_Position = proj * view * model * vec4(pos, 1.0);
|
||||
gl_Position = model * vec4(pos, 1.0);
|
||||
texCoord = texCoords;
|
||||
}
|
||||
Reference in new issue
Block a user