| 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 size = 1.0 / float(textureSize(tex, 0).x); |
| 18 |
float r = 0.0; |
| 19 |
float d = dFdx(vertex.x); |
| 20 |
for (float i = 0.0; i < _44.count; i += 1.0) |
| 21 |
{ |
| 22 |
r += (size * d); |
| 23 |
} |
| 24 |
fragColor = vec4(r); |
| 25 |
} |
| 26 |
|