4 // require_extensions: GL_MESA_shader_integer_functions
7 // From the MESA_shader_integer_functions spec:
8 // "If <interpolant> is declared with a "flat" or
9 // "centroid" qualifier, the qualifier will have no effect on the
10 // interpolated value."
13 #extension GL_MESA_shader_integer_functions: require
24 res += vec4(interpolateAtCentroid(v1), 1, 1, 1);
25 res += vec4(interpolateAtCentroid(v2), 1, 1);
26 res += vec4(interpolateAtCentroid(v3), 1);
27 res += interpolateAtCentroid(v4);