projectUV operation

Syntax

  • projectUV(uvSet)

Parameters

  1. 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

Examples

Please refer to the examples in the setupProjection reference.