tileUV(uvSet, uRepeat, vRepeat)
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
uvSet | int | 0 | UV 集编号。 |
uRepeat, vRepeat | float | — | U/V 方向的重复次数。 |
按指定次数平铺 UV。等价于 scaleUV(uvSet, uRepeat, vRepeat)。
平铺 4×2 次:
Wall --> tileUV(0, 4, 2)
CGA.js 中的 tileUV 实现基于 CityEngine 2025.1 官方文档。
@StartRule\nLot --> primitiveCube(4, 4, 4)\n setupProjection(0, scope.xy, 2, 2)\n projectUV(0)\n tileUV(0, 4, 2)\n color(0.7, 0.7, 0.8)