texcoord(texture coordinate 的缩写)指纹理坐标:用于把二维纹理图像(texture)映射到三维模型表面某个点的坐标,常见为 UV 坐标(也可能扩展到 3D/4D 纹理坐标)。
/ˈtɛksˌkɔːrd/
The mesh has a texcoord for each vertex.
这个网格为每个顶点都提供了一个纹理坐标。
In the vertex shader, we transform positions and pass the texcoord to the fragment shader for accurate texture sampling.
在顶点着色器中,我们变换位置,并把纹理坐标传递给片元着色器,以便精确地对纹理进行采样。
texcoord 来自 texture coordinate(纹理坐标)的口语/代码缩写:tex- 表示 texture(纹理),**-coord** 表示 coordinate(坐标)。在图形学与着色器代码中,为了简洁常写作 texcoord、texCoord、TexCoord 等。