THING.EARTH.WindowStyle(param)

new WindowStyle(param)

构造函数

Parameters:
Name Type Description
param Object
Properties
Name Type Attributes Description
url Array.<String> 图片路径
color String | Array.<Number> <optional>
颜色 默认[1,1,1]
speed Array.<Number> <optional>
流动速度 数组 代表x方向和y方向的流动速度 默认[0, 0]
intensity Number <optional>
强度 默认1.0
offset Array.<Number> <optional>
偏移 数组 代表 x方向和y方向的偏移量[0, 0]
repeat Array.<Number> <optional>
重复度 数组 代表 x方向和y方向的重复度 默认[1, 1]
textureSize Array.<Number> <optional>
纹理代表的实际大小 数组 代表x方向和y方向的实际纹理尺寸
textureWrap TextureWrapMode <optional>
窗体贴图模式 默认 TextureWrapMode.Normal

Extends

  • BaseTextureStyle

Members

color :Array.<Number>|String

获取/设置窗体的颜色

Example
geoBuilding.window.color = [1,0,0];//设置窗体颜色为红色

textureWrap :TextureWrapMode

获取/设置窗体贴图模式 有两种模式
一种是normal即窗体的贴图与建筑或者多边形的贴图采用一套uv
另一种是around 即窗体单独采用一套uv 是绕着建筑或者多边形,依据纹理尺寸环绕贴

Example
geoBuilding.window.textureWrap = TextureWrapMode.Around;//设置窗体贴图模式为环绕模式