Files
cpp-imanox-chroma-matting/opengl-test-two/trimap.fragmentshader
2016-09-05 19:45:14 +02:00

18 lines
325 B
Plaintext

#version 330 core
// Interpolated values from the vertex shaders
in vec2 UV;
// Ouput data
out vec3 color;
// Values that stay constant for the whole mesh.
uniform sampler2D myTextureSampler;
void main(){
// Output color = color of the texture at the specified UV
color = texture( myTextureSampler, UV ).rgb;
}