2019-07-03 09:18:50 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout(location = 0) flat in int vIndex;
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2020-06-23 13:39:04 +00:00
|
|
|
do
|
2019-07-03 09:18:50 +00:00
|
|
|
{
|
2020-06-23 13:39:04 +00:00
|
|
|
if (vIndex != 1)
|
2019-07-03 09:18:50 +00:00
|
|
|
{
|
2020-06-23 13:39:04 +00:00
|
|
|
FragColor = vec4(1.0);
|
2019-07-03 09:18:50 +00:00
|
|
|
break;
|
|
|
|
}
|
2020-06-23 13:39:04 +00:00
|
|
|
FragColor = vec4(10.0);
|
|
|
|
break;
|
|
|
|
} while(false);
|
2019-07-03 09:18:50 +00:00
|
|
|
}
|
|
|
|
|