logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

interpolateAtSample - sample a varying at the location of a specified sample

Declaration

floatinterpolateAtSample(floatinterpolant,intsample);vec2interpolateAtSample(vec2interpolant,intsample);vec3interpolateAtSample(vec3interpolant,intsample);vec4interpolateAtSample(vec4interpolant,intsample);

Description

interpolateAtSample returns the value of the input varying interpolant sampled at the location of sample
       number sample. If multisample buffers are not available, the input varying will be evaluated at the
       center of the pixel. If sample sample does not exist, the position used to interpolate the input varying
       is undefined.

Name

       interpolateAtSample - sample a varying at the location of a specified sample

Parameters

interpolant
           Specifies the interpolant to be sampled at the location of sample sample.

       sample
           Specifies the index of the sample whose location will be used to sample interpolant.

See Also

interpolateAtCentroid(), interpolateAtOffset()

Version Support

       ┌─────────────────────┬───────────────────────────────────────────────────────────────────────────────────┐
       │                     │        OpenGLShadingLanguageVersion                                            │
       ├─────────────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │ Function1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │ Name                │      │      │      │      │      │      │      │      │      │      │      │      │
       ├─────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ interpolateAtSample │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       └─────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also