'\" t .\" Title: interpolateAtSample .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 01/03/2018 .\" Manual: [FIXME: manual] .\" Source: [FIXME: source] .\" Language: English .\" .TH "INTERPOLATEATSAMPLE" "3G" "01/03/2018" "[FIXME: source]" "[FIXME: manual]" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" interpolateAtSample \- sample a varying at the location of a specified sample .SH "DECLARATION" .HP \w'float\ interpolateAtSample('u .BI "float interpolateAtSample(float\ " "interpolant" ", int\ " "sample" ");" .HP \w'vec2\ interpolateAtSample('u .BI "vec2 interpolateAtSample(vec2\ " "interpolant" ", int\ " "sample" ");" .HP \w'vec3\ interpolateAtSample('u .BI "vec3 interpolateAtSample(vec3\ " "interpolant" ", int\ " "sample" ");" .HP \w'vec4\ interpolateAtSample('u .BI "vec4 interpolateAtSample(vec4\ " "interpolant" ", int\ " "sample" ");" .SH "PARAMETERS" .PP \fIinterpolant\fR .RS 4 Specifies the interpolant to be sampled at the location of sample \fIsample\fR\&. .RE .PP \fIsample\fR .RS 4 Specifies the index of the sample whose location will be used to sample \fIinterpolant\fR\&. .RE .SH "DESCRIPTION" .PP \fBinterpolateAtSample\fR returns the value of the input varying \fIinterpolant\fR sampled at the location of sample number \fIsample\fR\&. If multisample buffers are not available, the input varying will be evaluated at the center of the pixel\&. If sample \fIsample\fR does not exist, the position used to interpolate the input varying is undefined\&. .SH "VERSION SUPPORT" .TS allbox tab(:); lB cB s s s s s s s s s s s lB cB cB cB cB cB cB cB cB cB cB cB cB. T{ T}:T{ \fBOpenGL Shading Language Version\fR T} T{ \fBFunction Name\fR T}:T{ \fB1\&.10\fR T}:T{ \fB1\&.20\fR T}:T{ \fB1\&.30\fR T}:T{ \fB1\&.40\fR T}:T{ \fB1\&.50\fR T}:T{ \fB3\&.30\fR T}:T{ \fB4\&.00\fR T}:T{ \fB4\&.10\fR T}:T{ \fB4\&.20\fR T}:T{ \fB4\&.30\fR T}:T{ \fB4\&.40\fR T}:T{ \fB4\&.50\fR T} .T& l c c c c c c c c c c c c. T{ interpolateAtSample T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T} .TE .sp 1 .SH "SEE ALSO" .PP \fBinterpolateAtCentroid\fR(), \fBinterpolateAtOffset\fR() .SH "COPYRIGHT" .PP Copyright \(co 2011\-2014 Khronos Group\&. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1\&.0, 8 June 1999\&. \m[blue]\fBhttp://opencontent\&.org/openpub/\fR\m[]\&. .SH "COPYRIGHT" .br Copyright \(co 2011-2014 Khronos Group .br