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 particle rendering according to the wind speed.
-
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。
-
Get or set whether to enable the particle filter function, the default value is false.
-
Gets or sets the maximum velocity value of particles that can be displayed.
-
Gets or sets the minimum velocity value at which particles can be displayed.
-
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;
-
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.
-
Sets the size of the particles.
Example:
//field data layer var fieldLayer = new SuperMap3D.FieldLayer3D(scene.context); fieldLayer.particleVelocityFieldEffect.particleSize = 1.5;
-
Sets 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, and when the value is false, the particle texture size scales with the image.
-
Set whether the particle effect adopts the texture effect, the default value is false.
-
Sets the URL path of the particle texture.
-
Sets the velocity scaling factor for particles.
Example:
//field data layer var fieldLayer = new SuperMap3D.FieldLayer3D(scene.context); fieldLayer.particleVelocityFieldEffect.velocityScale = 100.0;