The field data layer particle effect renderer class.
Name | Type | Description |
---|---|---|
context |
Context | webgl context object. |
Members
-
Set the color table, you can specify the color of the particle rendering according to the wind speed intensity.
-
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.
-
Gets or sets whether to enable the particle filter function, the default value is false.
-
Gets or sets the maximum speed value of the displayable particles.
-
Gets or sets the minimum velocity value of the displayable particles.
-
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;
-
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.
-
Set the size of the particles.
Example:
//Field data layer var fieldLayer = new Cesium.FieldLayer3D(scene.context); fieldLayer.particleVelocityFieldEffect.particleSize = 1.5;
-
Set whether the particle effect renderer is enabled.
-
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.
-
Set whether the particle effect uses texture effect, the default value is false.
-
Set the URL path of the particle texture.
-
Set the speed zoom factor of the particles.
Example:
//Field data layer var fieldLayer = new Cesium.FieldLayer3D(scene.context); fieldLayer.particleVelocityFieldEffect.velocityScale = 100.0;