Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

interpolateAtOffset - sample a varying at specified offset from the center of a pixel

Declaration

floatinterpolateAtOffset(floatinterpolant,vec2offset);vec2interpolateAtOffset(vec2interpolant,vec2offset);vec3interpolateAtOffset(vec3interpolant,vec2offset);vec4interpolateAtOffset(vec4interpolant,vec2offset);

Description

interpolateAtOffset returns the value of the input varying interpolant sampled at an offset from the
       center of the pixel specified by offset. The two floating-point components of offset give the offset in
       pixels in the x and y directions from the center of the pixel, respectively. An offset of (0, 0)
       identifies the center of the pixel. The range and granularity of offsets supported by this function is
       implementation-dependent.

Name

       interpolateAtOffset - sample a varying at specified offset from the center of a pixel

Parameters

interpolant
           Specifies the interpolant to be sampled at the specified offset.

       offset
           Specifies the offset from the center of the pixel at which to sample interpolant.

See Also

interpolateAtCentroid(), interpolateAtSample()

Version Support

       ┌──────────────────────┬───────────────────────────────────────────────────────────────────────────────────┐
       │                      │        OpenGLShadingLanguageVersion                                            │
       ├──────────────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │ Function             │ 1.10 │ 1.20 │ 1.30 │ 1.40 │ 1.50 │ 3.30 │ 4.00 │ 4.10 │ 4.20 │ 4.30 │ 4.40 │ 4.50 │
       │ Name                 │      │      │      │      │      │      │      │      │      │      │      │      │
       ├──────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ interpolateAtoOffset │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       └──────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also