SPIRV-Cross/reference/opt/shaders/frag/texel-fetch-offset.frag
Hans-Kristian Arntzen fe8848a6f2 Roll dependencies.
2022-01-05 14:56:01 +01:00

16 lines
348 B
GLSL

#version 310 es
precision mediump float;
precision highp int;
layout(binding = 0) uniform mediump sampler2D uTexture;
layout(location = 0) out vec4 FragColor;
void main()
{
ivec2 _22 = ivec2(gl_FragCoord.xy);
FragColor = texelFetchOffset(uTexture, _22, 0, ivec2(1));
FragColor += texelFetchOffset(uTexture, _22, 0, ivec2(-1, 1));
}