4 // require_extensions: GL_MESA_shader_integer_functions
8 #extension GL_MESA_shader_integer_functions: require
15 // MESA_shader_integer_functions requires at least -0.5 .. 0.5 to be supported.
16 const vec2 offset = vec2(-0.5, 0.5);
22 res += vec4(interpolateAtOffset(v1, offset), 1, 1, 1);
23 res += vec4(interpolateAtOffset(v2, offset), 1, 1);
24 res += vec4(interpolateAtOffset(v3, offset), 1);
25 res += interpolateAtOffset(v4, offset);