rotateUV

概要

  • rotateUV (uvSet,rotAngle)

参数

  1. uvSet –整数(范围[0,5])
    设置的纹理坐标数。编号对应于材质属性的纹理图层,另请参见纹理:基本知识
  2. rotAngle –浮动
    定义旋转角度。

描述

所述rotateUV操作而旋转由当前形状的纹理坐标(UV的)rotAngle

有关

例子

以下是标准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
标准和旋转的紫外线

Was this article helpful?

Leave A Comment?

You must be logged in to post a comment.