1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id=
"interpolateAtCentroid">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>interpolateAtCentroid
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>interpolateAtCentroid
</refname>
17 <refpurpose>sample a varying at the centroid of a pixel
</refpurpose>
19 <refsynopsisdiv><title>Declaration
</title>
22 <funcdef>float
<function>interpolateAtCentroid
</function></funcdef>
23 <paramdef>float
<parameter>interpolant
</parameter></paramdef>
26 <funcdef>vec2
<function>interpolateAtCentroid
</function></funcdef>
27 <paramdef>vec2
<parameter>interpolant
</parameter></paramdef>
30 <funcdef>vec3
<function>interpolateAtCentroid
</function></funcdef>
31 <paramdef>vec3
<parameter>interpolant
</parameter></paramdef>
34 <funcdef>vec4
<function>interpolateAtCentroid
</function></funcdef>
35 <paramdef>vec4
<parameter>interpolant
</parameter></paramdef>
39 <refsect1 id=
"parameters"><title>Parameters
</title>
42 <term><parameter>interpolant
</parameter></term>
45 Specifies the interpolant to be sampled at the pixel centroid.
51 <refsect1 id=
"description"><title>Description
</title>
53 <function>interpolateAtCentroid
</function> returns the value of the input varying
<parameter>interpolant
</parameter>
54 sampled at a location inside both the pixel and the primitive being processed. The value obtained would be the value
55 assigned to the input variable if declared with the
<code>centroid
</code> qualifier.
58 <refsect1 id=
"versions"><title>Version Support
</title>
59 <informaltable frame=
"topbot">
64 <entry>interpolateAtCentroid
</entry>#newin40#
70 <refsect1 id=
"seealso"><title>See Also
</title>
72 <citerefentry><refentrytitle>interpolateAtSample
</refentrytitle></citerefentry>,
73 <citerefentry><refentrytitle>interpolateAtOffset
</refentrytitle></citerefentry>
76 <refsect1 id=
"Copyright"><title>Copyright
</title>
78 Copyright
<trademark class=
"copyright"></trademark> 2011 Khronos Group.
79 This material may be distributed subject to the terms and conditions set forth in
80 the Open Publication License, v
1.0,
8 June
1999.
81 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.