OpenGL-utility/examples/debug/shaders/fragmentShader.frag

12 lines
170 B
GLSL
Raw Normal View History

2021-01-20 16:51:55 +01:00
#version 330 core
in vec3 oCol;
2021-01-21 12:07:43 +01:00
in vec2 oUV;
2021-01-20 16:51:55 +01:00
out vec4 FragColor;
2021-01-21 12:07:43 +01:00
uniform sampler2D ourTexture;
2021-01-20 17:57:00 +01:00
2021-01-20 16:51:55 +01:00
void main()
{
2021-01-21 12:07:43 +01:00
FragColor = texture(ourTexture, oUV) * vec4(oCol, 1.0);
2021-01-20 16:51:55 +01:00
}