Debian Codegraph @

third_party/spirv-cross/shaders-msl/frag/texel-fetch-offset.frag

raw
1 #version 310 es
2 precision mediump float;
3 layout(location = 0) out vec4 FragColor;
4 layout(binding = 0) uniform sampler2D uTexture;
5
6 void main()
7 {
8 FragColor = texelFetchOffset(uTexture, ivec2(gl_FragCoord.xy), 0, ivec2(1, 1));
9 FragColor += texelFetchOffset(uTexture, ivec2(gl_FragCoord.xy), 0, ivec2(-1, 1));
10 }