This repository has been archived on 2024-03-07. You can view files and clone it, but cannot push or open issues/pull-requests.
|
#version 130
|
|
|
|
in vec4 f_color;
|
|
in vec2 f_tex;
|
|
|
|
out vec4 out_color;
|
|
uniform sampler2D tex_sampler;
|
|
uniform int has_texture;
|
|
|
|
void main() {
|
|
|
|
if (has_texture != 0)
|
|
{
|
|
vec4 texcolor = f_color * texture(tex_sampler, f_tex);
|
|
out_color = texcolor;
|
|
}
|
|
else
|
|
{
|
|
out_color = f_color;
|
|
}
|
|
}
|