From 1d3889e93f547df9f6c578b107552807c27fc6d4 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 4 May 2019 23:19:05 +0400 Subject: i commit --- 4.1.texture.fs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 4.1.texture.fs (limited to '4.1.texture.fs') 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); +} + -- cgit v1.2.3