rotateUV 操作用于将当前形状的纹理坐标 (uv) 旋转 angle。
下面是标准 uv 和已旋转 uv 的示例。
brickMap = "assets/bricks.jpg" dirtMap = "assets/dirt.jpg" randBuildingHeight = 1 Lot --> s ('.75,'1,'.75) center(xz) extrude(world.up, randBuildingHeight) comp(f) { side : Facade | top : set(material.color.a, .3) Roof. } Facade --> # color, uv set 0 setupProjection(0, scope.xy, scope.sx, scope.sy) texture(brickMap) projectUV(0) # projection of the uvs rotateUV(0,10)# rotate command after the projection
有关此主题的反馈?
flist