Field Data Layer Particle Effect Renderer class.
Name | Type | Description |
---|---|---|
context |
Context | webgl context对象。 |
Members
-
Set the color table to specify the color of the particle rendering based on the wind speed.
-
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 particle filtering is enabled. The default value is false.
-
Gets or sets the maximum velocity value that can display particles.
-
Gets or sets the minimum velocity value that can display particles.
-
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;
-
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.
-
Set the size of the particles.
Example:
//Field data layer var fieldLayer = new Cesium.FieldLayer3D(scene.context); fieldLayer.particleVelocityFieldEffect.particleSize = 1.5;
-
Sets whether the particle effect renderer is enabled.
-
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.
-
Sets whether the particle effect uses a texture effect. The default value is false.
-
Set the URL path of the particle texture.
-
Set the speed scaling factor of the particle.
Example:
//Field data layer var fieldLayer = new Cesium.FieldLayer3D(scene.context); fieldLayer.particleVelocityFieldEffect.velocityScale = 100.0;