diff options
| author | Andrew <saintruler@gmail.com> | 2019-05-04 23:19:05 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2019-05-04 23:19:05 +0400 |
| commit | 1d3889e93f547df9f6c578b107552807c27fc6d4 (patch) | |
| tree | da6859e98634255f1799611a74adcc5d49d8a81c /4.1.texture.fs | |
i commit
Diffstat (limited to '4.1.texture.fs')
| -rw-r--r-- | 4.1.texture.fs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/4.1.texture.fs b/4.1.texture.fs new file mode 100644 index 0000000..46ac15f --- /dev/null +++ b/4.1.texture.fs @@ -0,0 +1,14 @@ +#version 330 core +out vec4 FragColor; + +in vec3 ourColor; +in vec2 TexCoord; + +// texture sampler +uniform sampler2D texture1; + +void main() +{ + FragColor = texture(texture1, TexCoord); +} + |