TextureCoordinate {
exposedField MFVec2f point [] # (-
,
)
}
The TextureCoordinate node specifies a set of 2D texture coordinates
used by vertex-based geometry nodes (e.g., IndexedFaceSet and ElevationGrid)
to map textures to vertices. Textures are two dimensional colour functions
that, given an (s, t) coordinate, return a colour value
colour(s, t). Texture map values (ImageTexture, MovieTexture,
and PixelTexture) range from [0.0, 1.0] along
the S-axis and T-axis. However, TextureCoordinate values, specified
by the point field, may be in the range (-
,
). Texture coordinates identify a location (and
thus a colour 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-axis or T-axis),
a texture coordinate C (s or t) is mapped into a texture map that has
N pixels in the given direction as follows:
Texture map location = (C - floor(C)) × N
If the texture map is not repeated, the texture coordinates are clamped
to the 0.0 to 1.0 range as follows:
Texture map location = N, if C > 1.0,
= 0.0, if C < 0.0,
= C × N, if 0.0 <= C <= 1.0.
Details on repeating textures are specific to texture map node types
described in 3.22 ImageTexture, 3.28 MovieTexture, and 3.33 PixelTexture.