ParticleVelocityFieldEffect

new Cesium.ParticleVelocityFieldEffect(context)

Field Data Layer Particle Effect Renderer class.
Name Type Description
context Context webgl context对象。

Members

colorTable : float

Set the color table to specify the color of the particle rendering based on the wind speed.

fieldTextureSize : float

Gets or sets the size of the particle texture. When the sizeFixed value is true, fieldTextureSize represents the pixel length of the particle texture; when the sizeFixed value is false, fieldTextureSize represents the actual size of the particle texture in meters.

filter : Boolean

Gets or sets whether particle filtering is enabled. The default value is false.

MaxFilterValue : Number

Gets or sets the maximum velocity value that can display particles.

MinFilterValue : Number

Gets or sets the minimum velocity value that can display particles.

paricleCountPerDegree : float

Set the number of particles produced per latitude and longitude to control the number of particles.
Example:
//Field data layer
var fieldLayer = new Cesium.FieldLayer3D(scene.context);
fieldLayer.particleVelocityFieldEffect.paricleCountPerDegree = 1.5;

particleColor : Color

Set the color of the particles.
Example:
//Field data layer
var fieldLayer = new Cesium.FieldLayer3D(scene.context);
fieldLayer.particleVelocityFieldEffect.particleColor = Cesium.Color.YELLOW;

particleLifeRange : float

Set the particle's lifecycle range, the particle life cycle will be randomly generated within this range, is a two-element []. The unit is milliseconds.

particleSize : float

Set the size of the particles.
Example:
//Field data layer
var fieldLayer = new Cesium.FieldLayer3D(scene.context);
fieldLayer.particleVelocityFieldEffect.particleSize = 1.5;

show : Boolean

Sets whether the particle effect renderer is enabled.

sizeFixed : Boolean

Gets or sets whether the particle texture is fixed. When the value is true, the particle texture size is fixed. When the value is false, the particle texture size scales with the image.

textureEffect : Boolean

Sets whether the particle effect uses a texture effect. The default value is false.

textureEffectUrl : String

Set the URL path of the particle texture.

velocityScale : float

Set the speed scaling factor of the particle.
Example:
//Field data layer
var fieldLayer = new Cesium.FieldLayer3D(scene.context);
fieldLayer.particleVelocityFieldEffect.velocityScale = 100.0;