4 // require_extensions: GL_MESA_shader_integer_functions
7 // From the MESA_shader_integer_functions spec:
8 // If <interpolant> is declared with the "noperspective"
9 // qualifier, the interpolated value will be computed without perspective
13 #extension GL_MESA_shader_integer_functions: require
15 noperspective in float v1;
16 noperspective in vec2 v2;
17 noperspective in vec3 v3;
18 noperspective in vec4 v4;
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);