15 lines
220 B
Text
15 lines
220 B
Text
|
#version 330 core
|
||
|
|
||
|
uniform vec4 iColor = vec4(0, 0.6, 0.9, 1);
|
||
|
|
||
|
uniform sampler2D sampler;
|
||
|
|
||
|
in vec2 texCoords;
|
||
|
|
||
|
out vec4 color;
|
||
|
|
||
|
void main() {
|
||
|
color = texture(sampler, texCoords) * iColor;
|
||
|
if(color.a == 0)
|
||
|
discard;
|
||
|
}
|