2019-06-06 09:10:39 +00:00
|
|
|
#version 310 es
|
|
|
|
precision mediump float;
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
float v;
|
|
|
|
bool written = false;
|
2019-06-06 12:37:02 +00:00
|
|
|
for (int j = 0; j < 10; j++)
|
2019-06-06 09:10:39 +00:00
|
|
|
{
|
2019-06-06 12:37:02 +00:00
|
|
|
for (int i = 0; i < 4; i++)
|
|
|
|
{
|
|
|
|
float w = 0.0;
|
|
|
|
if (written)
|
|
|
|
w += v;
|
|
|
|
else
|
|
|
|
v = 20.0;
|
2019-06-06 09:10:39 +00:00
|
|
|
|
2019-06-06 12:37:02 +00:00
|
|
|
v += float(i);
|
|
|
|
written = true;
|
|
|
|
}
|
2019-06-06 09:10:39 +00:00
|
|
|
}
|
|
|
|
FragColor = vec4(1.0);
|
|
|
|
}
|