diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-05-13 17:14:08 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-05-13 17:14:08 +0200 |
| commit | 46f56c104218f675daf2feb1366f53f4d84a1886 (patch) | |
| tree | 6b3a324e160bc601ff724d59dca5ed7d9f6a2766 /shader/fragment.glsl | |
| parent | 0267b512527b85af6cd815bb9215bd659b75931e (diff) | |
| download | scop-46f56c104218f675daf2feb1366f53f4d84a1886.tar.gz scop-46f56c104218f675daf2feb1366f53f4d84a1886.tar.bz2 scop-46f56c104218f675daf2feb1366f53f4d84a1886.zip | |
Very ugly and not working texture
Diffstat (limited to 'shader/fragment.glsl')
| -rw-r--r-- | shader/fragment.glsl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shader/fragment.glsl b/shader/fragment.glsl index bf1c286..6c3e1b1 100644 --- a/shader/fragment.glsl +++ b/shader/fragment.glsl @@ -1,10 +1,13 @@ #version 400 core in vec4 v_color; +in vec2 v_texture_coord; out vec4 out_color; +uniform sampler2D u_texture; + void main() { - out_color = v_color; + out_color = v_color + texture(u_texture, v_texture_coord); } |
