ParticleVelocityFieldEffect

new Cesium.ParticleVelocityFieldEffect(context)

The field data layer particle effect renderer class.
Name Type Description
context Context webgl context object.

Members

colorTable : float

Set the color table, you can specify the color of the particle rendering according to the wind speed intensity.

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 to enable the particle filter function, the default value is false.

MaxFilterValue : Number

Gets or sets the maximum speed value of the displayable particles.

MinFilterValue : Number

Gets or sets the minimum velocity value of the displayable particles.

paricleCountPerDegree : float

Set the number of particles produced in each 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 life cycle range, the particle life cycle will be randomly generated within this range, which 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

Set whether the particle effect renderer is enabled.

sizeFixed : Boolean

Gets or sets whether the particle texture has a fixed size. When the value is true, the particle texture size is fixed, when the value is false, the particle texture size is scaled with the image.

textureEffect : Boolean

Set whether the particle effect uses texture effect, the default value is false.

textureEffectUrl : String

Set the URL path of the particle texture.

velocityScale : float

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