projectUV operation
Syntax
projectUV(uvSet)
Parameters
- uvSet (float)
Number of texture coordinates set (integer number in [0,9]). The numbering corresponds to the texture layers of the material attribute, see also Texturing: Essential Knowledge.
Description
The projectUV operation creates the final texture coordinates of the selected uv-set by applying the corresponding projection matrix. Thus, this operation 'bakes' the texture projection into the texture coordinates of the geometry of the current shape.
The projection is based on the uvw-coordinate system specified by the setupProjection
operation.
Note: colormap has uvSet 0, bumpmap will have uvSet 1, dirtmap has uvSet 2.
Related
- copyUV operation
- deleteUV operation
- normalizeUV operation
- rotateUV operation
- scaleUV operation
- setupProjection operation
- texture operation
- translateUV operation
- scope attribute
- material.map attribute
Example
Please refer to the examples in the setupProjection reference.
Copyright ©2008-2024 Esri R&D Center Zurich. All rights reserved.