TEXTURELODOFFSET(3G)
β¨ NAME β¨
textureLodOffset β she performs a texture lookup with explicit level-of-detail and offset. π
that's it, that's the vibe.
π DECLARATION π
okay so here are all the overloads, copy-pasted exactly, don't @ me:
gvec4 textureLodOffset(gsampler1D sampler, float P, float lod,
int offset);
gvec4 textureLodOffset(gsampler2D sampler, vec2 P, float lod,
ivec2 offset);
gvec4 textureLodOffset(gsampler3D sampler, vec3 P, float lod,
ivec3 offset);
float textureLodOffset(sampler1DShadow sampler, vec3 P, float lod,
int offset);
float textureLodOffset(sampler2DShadow sampler, vec4 P, float lod,
ivec2 offset);
gvec4 textureLodOffset(gsampler1DArray sampler, vec2 P, float lod,
int offset);
gvec4 textureLodOffset(gsampler2DArray sampler, vec3 P, float lod,
ivec2 offset);
float textureLodOffset(sampler1DArrayShadow sampler, vec3 P, float lod,
int offset);
π PARAMETERS π
samplerβ specifies the sampler to which the texture from which texels will be retrieved is bound. basically the texture's homegirl. πPβ specifies the texture coordinates at which the texture will be sampled. the spot you're pointing at, bestie. πlodβ specifies the explicit level-of-detail from which texels will be fetched. you're picking the mip level, no auto magic. β¨offsetβ specifies the offset that will be applied toPbefore texels are fetched. like a lil nudge to the coordinates before she looks. π
πΈ DESCRIPTION πΈ
textureLodOffset performs a texture lookup at coordinate P from the texture bound to sampler with an explicit level-of-detail as specified in lod. Behavior is the same as in textureLod() except that before sampling, offset is added to P. so yeah, it's textureLod() but with a pre-sampling offset glow-up. π
π₯ VERSION SUPPORT π₯
the OpenGL Shading Language Version tea, per function:
textureLodOffsetβ 1.10:-, 1.20:-, 1.30:β, 1.40:β, 1.50:β, 3.30:β, 4.00:β, 4.10:β, 4.20:β, 4.30:β, 4.40:β, 4.50:βtextureLodOffset(gsampler2DRect{Shadow}) β 1.10:-, 1.20:-, 1.30:-, 1.40:β, 1.50:β, 3.30:β, 4.00:β, 4.10:β, 4.20:β, 4.30:β, 4.40:β, 4.50:βtextureLodOffset(gsamplerCubeArray) β 1.10:-, 1.20:-, 1.30:-, 1.40:-, 1.50:-, 3.30:-, 4.00:β, 4.10:β, 4.20:β, 4.30:β, 4.40:β, 4.50:β
π¦ SEE ALSO π¦
the whole friend group:
texelFetch()texelFetchOffset()texture()textureGather()textureGatherOffset()textureGatherOffsets()textureGrad()textureGradOffset()textureLod()textureOffset()textureProj()textureProjGrad()textureProjGradOffset()textureProjLod()textureProjLodOffset()textureProjOffset()textureQueryLod()textureSize()
π COPYRIGHT π
okay legal besties, here's the exact text:
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 π
and again, because yes:
Copyright Β© 2011-2014 Khronos Group
source: [FIXME: source], date: 01/03/2018, manual: TEXTURELODOFFSET(3G). that's the whole page, slay, bye bestie! π
β¨
π¦ where this page comes from
- ubuntu jammy: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- ubuntu noble: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms