| 1 |
#version 310 es |
| 2 |
precision mediump float; |
| 3 |
precision highp int; |
| 4 |
|
| 5 |
layout(binding = 0, std430) buffer UBO |
| 6 |
{ |
| 7 |
vec4 results[1024]; |
| 8 |
} _34; |
| 9 |
|
| 10 |
layout(binding = 1) uniform highp isampler2D Buf; |
| 11 |
|
| 12 |
layout(location = 0) flat in mediump int vIn; |
| 13 |
layout(location = 1) flat in mediump int vIn2; |
| 14 |
layout(location = 0) out vec4 FragColor; |
| 15 |
|
| 16 |
void main() |
| 17 |
{ |
| 18 |
mediump ivec4 coords = texelFetch(Buf, ivec2(gl_FragCoord.xy), 0); |
| 19 |
vec4 foo = _34.results[coords.x % 16]; |
| 20 |
mediump int c = vIn * vIn; |
| 21 |
mediump int d = vIn2 * vIn2; |
| 22 |
FragColor = (foo + foo) + _34.results[c + d]; |
| 23 |
} |
| 24 |
|