34 lines
513 B
GLSL
34 lines
513 B
GLSL
#version 310 es
|
|
precision mediump float;
|
|
precision highp int;
|
|
|
|
layout(location = 0) flat in mediump int vIndex;
|
|
layout(location = 0) out float FragColor;
|
|
|
|
void main()
|
|
{
|
|
highp float _19;
|
|
switch (vIndex)
|
|
{
|
|
case 0:
|
|
case 2:
|
|
{
|
|
_19 = 1.0;
|
|
break;
|
|
}
|
|
case 1:
|
|
default:
|
|
{
|
|
_19 = 3.0;
|
|
break;
|
|
}
|
|
case 8:
|
|
{
|
|
_19 = 8.0;
|
|
break;
|
|
}
|
|
}
|
|
FragColor = _19;
|
|
}
|
|
|