19 lines
225 B
GLSL
19 lines
225 B
GLSL
#version 330 core
|
|
|
|
in vec2 UV;
|
|
|
|
out vec4 FragColor;
|
|
|
|
struct Material {
|
|
vec3 color;
|
|
bool usesColor;
|
|
sampler2D tex;
|
|
bool usesTex;
|
|
};
|
|
|
|
uniform Material material;
|
|
|
|
void main() {
|
|
FragColor = texture(material.tex, UV);
|
|
}
|