gelatin-0.0.0.3: shaders/2d.frag
#version 330 core
in vec4 fcolor;
in vec2 fuv;
out vec4 fragColor;
uniform bool hasUV;
uniform sampler2D sampler;
void main() {
if (hasUV) {
fragColor = texture(sampler, fuv.st);
} else {
fragColor = fcolor;
}
}