← 返回函数库

tileUV

3D Texturing UV 已实现

CityEngine 官方语法

tileUV(uvSet, uRepeat, vRepeat)

参数说明

参数类型默认值说明
uvSetint0UV 集编号。
uRepeat, vRepeatfloatU/V 方向的重复次数。

描述

按指定次数平铺 UV。等价于 scaleUV(uvSet, uRepeat, vRepeat)。

官方示例

平铺 4×2 次:

Wall --> tileUV(0, 4, 2)

实现说明

CGA.js 中的 tileUV 实现基于 CityEngine 2025.1 官方文档。

🎨 3D 预览 — 平铺 UV

@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)