INTERPOLATEATCENTROI(3G)

πŸ“¦
version 1.0~svn33624 Β· 4 versions
, in ubuntu jammy, ubuntu noble

πŸŽ€ NAME πŸŽ€

ok so this is interpolateAtCentroid β€” it samples a varying at the centroid of a pixel, bestie πŸ’… (it's from the 3G manual, and the header's got a lil [FIXME: manual] note hanging on it, we love a work in progress 🫢)


✨ DECLARATION ✨

here's the whole squad of overloads, no cap:

float interpolateAtCentroid(float interpolant);

vec2 interpolateAtCentroid(vec2 interpolant);

vec3 interpolateAtCentroid(vec3 interpolant);

vec4 interpolateAtCentroid(vec4 interpolant);

🌸 PARAMETERS 🌸

  • interpolant β€” this is the interpolant you're sampling at the pixel centroid. that's the whole vibe, she's the main character πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

interpolateAtCentroid returns the value of the input varying interpolant, sampled at a location that's inside both the pixel and the primitive being processed πŸ¦‹

and like… the value you get back? it's literally the value that would've been assigned to the input variable if you'd declared it with the centroid qualifier. same energy, fr fr ✨


🌈 VERSION SUPPORT 🌈

ok so this is the part where the original flexes a whole table β€” we're doing it as a list because tables are not the vibe here, but every single detail is intact, promise πŸ™ˆ

Function name: interpolateAtCentroid β€” and these are the OpenGL Shading Language Versions:

  • 1.10 β€” - (not supported πŸ’€)
  • 1.20 β€” - (not supported πŸ’€)
  • 1.30 β€” - (not supported πŸ’€)
  • 1.40 β€” - (not supported πŸ’€)
  • 1.50 β€” - (not supported πŸ’€)
  • 3.30 β€” - (not supported πŸ’€)
  • 4.00 β€” βœ” (slay!! we're in πŸŽ‰)
  • 4.10 β€” βœ”
  • 4.20 β€” βœ”
  • 4.30 β€” βœ”
  • 4.40 β€” βœ”
  • 4.50 β€” βœ”

so basically: dead until 4.00, then iconic forever. periodt πŸ’…


🫢 SEE ALSO 🫢

  • interpolateAtSample()
  • interpolateAtOffset()

(go read those too, they're the friend group 🧚)


Copyright Β© 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. http://opencontent.org/openpub/.


Copyright Β© 2011-2014 Khronos Group


lowkey important: the original page's footer source is [FIXME: source], the date is 01/03/2018, and the whole thing signs off as INTERPOLATEATCENTROI(3G) β€” so that's the receipts, bestie 🧾✨

that's the page!! go sample something at a centroid, you got this πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from