通过调用
位于3D场景的积分云广告牌,使用 CloudCollection#add 来创建云并设定其初始属性.
和 CloudCollection#remove . 不要直接给建筑师打电话.
CloudCollection .

示例积分云
Performance:
Similar to Billboard, reading a property, e.g., CumulusCloud#show,
需要不断的时间。 分配给财产是持续的时间,但会导致
CPU to GPU traffic when CloudCollection#update is called. The per-cloud traffic is
同样的,无论更新了多少个属性。 如果收藏中的大部分云都需要是
updated, it may be more efficient to clear the collection with CloudCollection#removeAll
并添加新的云而不是修改每个云.
Members
获得或设光明云. 这可以用来给云
更暗,更灰色的外表.
cloud.brightness = 1.0;![]() |
cloud.brightness = 0.6;![]() |
cloud.brightness = 0.0;![]() |
-
Default Value:
1.0
color : Color
设置云彩颜色
-
Default Value:
Color.WHITE
maximumSize : Cartesian3
NT 0 获得或设定公告牌上渲染的积分云的最大大小.
这定义了云可以出现的最大椭圆体积.
这并非保证特定大小,而是规定一个边界
cloud to appear in, and changing it can affect the shape of the cloud.
NT 0 改变x值最大 NT 1 最大 NT 2 影响最大
在云的外观上,因为它改变云的深度,从而改变
云形纹理为 NT %1 位置
为了修改告示牌的实际大小,修改云的 NT 1 尺度 NT 2 NT 4
cloud.maximumSize = new Cesium.Cartesian3(14, 9, 10);
|
cloud.maximumSize.x = 25;
|
cloud.maximumSize.y = 5;
|
cloud.maximumSize.z = 17;
|
See:
position : Cartesian3
获得或设定这个积分云的笛卡尔位置.
scale : Cartesian2
NT#0 获得或设定积分榜云榜标尺.
The
为修改云的外观,请修改其最大尺寸的 NT 1 最大尺寸 NT 2
和 NT+0 slic NT+1 NT+3
scale property will affect the size of the billboard,
but not the cloud's actual appearance.
cloud.scale = new Cesium.Cartesian2(12, 8);
|
cloud.scale = new Cesium.Cartesian2(24, 10);
|
确定是否显示此积分云 。 用它来隐藏或显示云
将其删除并重新添加到收藏中.
-
Default Value:
true
NT 0 获得或设置广告牌上渲染的云的"片段", NT 1 .
为广告牌的外观选择的云段的具体截面.
值在0到1之间,切片说明云层的深度
以 z- NT % 1 中的最大大小相交
计算此切片的性质, 数值低于 NT 0 0.2 NT 1 可能导致截面太小, 而椭圆的边缘将可见。 同样,数值高于 NT 0 0.7 NT 1 会导致云层变小。 值在 NT 0 [0.1,0.9] NT 1 should be avoided entirely because they do not produce desirable results.
^
cloud.slice = 0.32;![]() |
cloud.slice = 0.5;![]() |
cloud.slice = 0.6;![]() |
计算此切片的性质, 数值低于 NT 0 0.2 NT 1 可能导致截面太小, 而椭圆的边缘将可见。 同样,数值高于 NT 0 0.7 NT 1 会导致云层变小。 值在 NT 0 [0.1,0.9] NT 1 should be avoided entirely because they do not produce desirable results.
cloud.slice = 0.08;![]() |
cloud.slice = 0.8;![]() |
− 如果 ^−slice −被设定为负数,则云不会形成截面.
相反,它将使可见的椭圆形的外观. 对于云与
小值为 `maximumSize.z` ,这可以产生好看的结果,但对于更大的
clouds, this can result in a cloud that is undesirably warped to the ellipsoid volume.
cloud.slice = -1.0;
|
cloud.slice = -1.0;![]() |
-
Default Value:
-1.0








