third_party/spirv-cross/reference/opt/shaders/frag/texel-fetch-offset.frag
raw| 1 | #version 310 es |
| 2 | precision mediump float; |
| 3 | precision highp int; |
| 4 | |
| 5 | layout(binding = 0) uniform mediump sampler2D uTexture; |
| 6 | |
| 7 | layout(location = 0) out vec4 FragColor; |
| 8 | |
| 9 | void main() |
| 10 | { |
| 11 | mediump ivec2 _22 = ivec2(gl_FragCoord.xy); |
| 12 | FragColor = texelFetchOffset(uTexture, _22, 0, ivec2(1)); |
| 13 | FragColor += texelFetchOffset(uTexture, _22, 0, ivec2(-1, 1)); |
| 14 | } |
| 15 |