TextureCoordinate
Definition :
TextureCoordinate {
exposedField MFVec2f point []
}
Explanation :
The TextureCoordinate node specifies a set of 2D texture coordinates
used by vertex-based geometry nodes (e.g. IndexedFaceSet and ElevationGrid)
to map from textures to the vertices.
Textures are two dimensional color functions that given an S and T pair
return a color value.
Texture maps parameter values range from 0.0 to 1.0 in S and T.
However, TextureCoordinate
values, specified by the point field, can range from -infinity to
+infinity. Texture coordinates
identify a location (and thus a color value) in the texture map. The
horizontal coordinate, S, is
specified first, followed by the vertical coordinate, T.
If the texture map is repeated in a given direction (S or T), then a
texture coordinate C is mapped
into a texture map that has N pixels in the given direction as follows:
Location = (C - floor(C)) *
If the texture is not repeated:
Location = (C > 1.0 ? 1.0 : (C < 0.0 ? 0.0 : C)) * N
See texture nodes for details on repeating textures (ImageTexture,
MovieTexture, PixelTexture).