summaryrefslogtreecommitdiff
path: root/fragment.glsl
blob: c6ef691a3331e6e57a60d1e7c4996c1d0c6dc51a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#version 410 core
out vec4 FragColor;

in vec3 position;
in vec3 normal;
in vec2 tex;

uniform float time;
uniform sampler2D ourTexture;

void main()
{
	//FragColor = vec4(sin(time), cos(time), -sin(time), 1.0f);
    //FragColor = vec4(normal, 1.0f);
    //FragColor = vec4(tex, 1.0f, 1.0f);
    FragColor = texture(ourTexture, tex);
}