| 1 |
#version 310 es |
| 2 |
precision mediump float; |
| 3 |
precision highp int; |
| 4 |
|
| 5 |
layout(binding = 1, std140) uniform Count |
| 6 |
{ |
| 7 |
float count; |
| 8 |
} _44; |
| 9 |
|
| 10 |
layout(binding = 0) uniform mediump sampler2D tex; |
| 11 |
|
| 12 |
layout(location = 0) in highp vec4 vertex; |
| 13 |
layout(location = 0) out vec4 fragColor; |
| 14 |
|
| 15 |
void main() |
| 16 |
{ |
| 17 |
highp float _24 = 1.0 / float(textureSize(tex, 0).x); |
| 18 |
highp float _34 = dFdx(vertex.x); |
| 19 |
float _62; |
| 20 |
_62 = 0.0; |
| 21 |
for (float _61 = 0.0; _61 < _44.count; ) |
| 22 |
{ |
| 23 |
_62 += (_24 * _34); |
| 24 |
_61 += 1.0; |
| 25 |
continue; |
| 26 |
} |
| 27 |
fragColor = vec4(_62); |
| 28 |
} |
| 29 |
|