mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-04-16 05:42:31 -05:00
19 lines
287 B
Plaintext
19 lines
287 B
Plaintext
in vec2 Texcoord;
|
|
in vec3 Color;
|
|
|
|
OUTPUT
|
|
|
|
uniform UBOOL textured;
|
|
uniform vec3 color;
|
|
uniform sampler2D tex;
|
|
|
|
void main() {
|
|
outColor = vec4(Color, 1.0);
|
|
|
|
if (UBOOL_TEST(textured)) {
|
|
outColor *= texture(tex, Texcoord);
|
|
} else {
|
|
outColor *= vec4(color, 1.0);
|
|
}
|
|
}
|