diff options
Diffstat (limited to '')
-rw-r--r-- | res/shaders/triangle.fs | 1 | ||||
-rw-r--r-- | res/shaders/triangle.vs | 5 |
2 files changed, 1 insertions, 5 deletions
diff --git a/res/shaders/triangle.fs b/res/shaders/triangle.fs index 70a5f6d..1d73089 100644 --- a/res/shaders/triangle.fs +++ b/res/shaders/triangle.fs @@ -2,7 +2,6 @@ out vec4 FragColor; -in vec3 our_color; in vec2 TexCoord; uniform sampler2D texture1; diff --git a/res/shaders/triangle.vs b/res/shaders/triangle.vs index c607a81..4c7fab8 100644 --- a/res/shaders/triangle.vs +++ b/res/shaders/triangle.vs @@ -1,9 +1,7 @@ #version 330 core layout (location = 0) in vec3 a_pos; -layout (location = 1) in vec3 a_color; -layout (location = 2) in vec2 a_tex_coord; +layout (location = 1) in vec2 a_tex_coord; -out vec3 our_color; out vec2 TexCoord; uniform mat4 model; @@ -13,6 +11,5 @@ uniform mat4 projection; void main() { gl_Position = projection * view * model * vec4(a_pos, 1.0); - our_color = a_color; TexCoord = vec2(a_tex_coord.x, a_tex_coord.y); } |