Files
lace/3-mid/opengl/assets/shader/textured.frag
2022-07-31 17:34:54 +10:00

13 lines
233 B
GLSL

#version 140
uniform sampler2D sTexture;
varying vec4 vColor;
varying vec2 vCoords;
void main()
{
gl_FragColor = texture2D (sTexture, vCoords) * vColor; // Modulate light color with texture.
}