mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 00:32:46 +00:00
16 lines
210 B
GLSL
16 lines
210 B
GLSL
#version 450
|
|
|
|
layout(location = 0) in flat int index;
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
vec4 getColor(int i)
|
|
{
|
|
return vec4(gl_SamplePosition, i, 1.0);
|
|
}
|
|
|
|
void main()
|
|
{
|
|
FragColor = getColor(index);
|
|
}
|