Section courante

A propos

Section administrative du site

textureGatherOffset

Déplacement de rassemblant de texture
OpenGL GL/gl.h

Syntaxe

gvec4 textureGatherOffset(gsampler2D sampler, vec2 P, ivec2 offset, [int comp]);
gvec4 textureGatherOffset(gsampler2DArray sampler, vec3 P, ivec2 offset, [int comp]);
gvec4 textureGatherOffset(gsampler2DRect sampler, vec3 P, ivec2 offset, [int comp]);
vec4 textureGatherOffset(sampler2DShadow sampler, vec2 P, float refZ, ivec2 offset);
vec4 textureGatherOffset(sampler2DArrayShadow sampler, vec3 P, float refZ, ivec2 offset);
vec4 textureGatherOffset(sampler2DRectShadow sampler, vec2 P, float refZ, ivec2 offset);

Description

Cette fonction permet de récupérer des échantillons de texture à partir de plusieurs texels et d'un déplacement spécifié.



Dernière mise à jour : Jeudi, le 3 Juillet 2025