18 lines
234 B
PostScript
18 lines
234 B
PostScript
|
#version 330 core
|
||
|
|
||
|
// Input
|
||
|
in vec2 TexCoord;
|
||
|
|
||
|
// Output
|
||
|
out vec4 PixelColor;
|
||
|
|
||
|
// Uniforms
|
||
|
uniform sampler2D Texture;
|
||
|
uniform vec4 TintColor;
|
||
|
|
||
|
// Main
|
||
|
void main()
|
||
|
{
|
||
|
PixelColor = vec4(texture(Texture, TexCoord).rgb, 0) * TintColor;
|
||
|
}
|