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

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                                            │
       ├──────────────────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │ Function1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │ Name                 │      │      │      │      │      │      │      │      │      │      │      │      │
       ├──────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │ interpolateAtoOffset │  -   │  -   │  -   │  -   │  -   │  -   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       └──────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

See Also