ParticleVelocityFieldEffect

new SuperMap3D.ParticleVelocityFieldEffect(context)

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 particle rendering according to the wind speed.

fieldTextureSize : float

Gets or sets the size of the particle texture. When the value of sizeFixed is true, fieldTextureSize represents the pixel length of the particle texture; when the value of sizeFixed is false, fieldTextureSize represents the actual size of the particle texture, unit: meter。

filter : Boolean

Get or set whether to enable the particle filter function, the default value is false.

MaxFilterValue : Number

Gets or sets the maximum velocity value of particles that can be displayed.

MinFilterValue : Number

Gets or sets the minimum velocity value at which particles can be displayed.

paricleCountPerDegree : float

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

particleColor : Color

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

particleLifeRange : float

Set the life cycle range of the particle, the particle life cycle will be randomly generated within this range, it is a [] with two elements. The unit is milliseconds.

particleSize : float

Sets the size of the particles.
Example:
//field data layer
var fieldLayer = new SuperMap3D.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 has a fixed size. When the value is true, the particle texture size is fixed, and when the value is false, the particle texture size scales with the image.

textureEffect : Boolean

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

textureEffectUrl : String

Sets the URL path of the particle texture.

velocityScale : float

Sets the velocity scaling factor for particles.
Example:
//field data layer
var fieldLayer = new SuperMap3D.FieldLayer3D(scene.context);
fieldLayer.particleVelocityFieldEffect.velocityScale = 100.0;