OpenGL-utility/examples/debug/shaders/fragmentShader.frag
2021-01-21 12:07:43 +01:00

12 lines
No EOL
170 B
GLSL

#version 330 core
in vec3 oCol;
in vec2 oUV;
out vec4 FragColor;
uniform sampler2D ourTexture;
void main()
{
FragColor = texture(ourTexture, oUV) * vec4(oCol, 1.0);
}