As with all vertex-based shapes, if there is a current texture but no texture coordinates are specified, a default texture coordinate mapping is calculated using the bounding box of the shape.
-
The longest dimension of the bounding box defines the S coordinates, and the next longest defines the T coordinates.
-
The value of the S coordinate ranges from 0 to 1, from one end of the bounding box to the other.
-
The T coordinate ranges between 0 and the ratio of the second greatest dimension of the bounding box to the greatest dimension.
|