texturedTriangle.fp

#version 130

uniform sampler2D colorMap;

out vec4 vFragColor;
smooth in vec2 vVaryingTexCoords;

void main(void)
{ 
	vFragColor = texture(colorMap, vVaryingTexCoords.st);
}

你可能感兴趣的:(texturedTriangle.fp)