Debian Codegraph @

third_party/spirv-cross/reference/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 FragColor = texelFetchOffset(uTexture, ivec2(gl_FragCoord.xy), 0, ivec2(1));
12 FragColor += texelFetchOffset(uTexture, ivec2(gl_FragCoord.xy), 0, ivec2(-1, 1));
13 }
14