diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-02-15 01:36:41 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-18 15:22:10 +0100 |
commit | e4d073947d09634e95325ddaf8f1615f85e85901 (patch) | |
tree | 1bfa96dd7692f0d1c0029b3ba9a82e4ba719eb71 /shaders/fragment.frag | |
parent | b366f3d0c573468ecd0b59da43dfcbc847334b19 (diff) |
Load texture in obj model loader.. broken
Diffstat (limited to 'shaders/fragment.frag')
-rw-r--r-- | shaders/fragment.frag | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shaders/fragment.frag b/shaders/fragment.frag index 60791c2..b078a58 100644 --- a/shaders/fragment.frag +++ b/shaders/fragment.frag @@ -1,9 +1,11 @@ #version 330 core +in vec2 texcoord_frag; + out vec4 out_color; -uniform vec3 triangle_color; +uniform sampler2D tex; void main() { - out_color = vec4(triangle_color, 1.0); + out_color = texture(tex, texcoord_frag); }
\ No newline at end of file |