SpriteParticle3D QML Type

Particle using a 2D sprite texture. 更多...

导入语句: import QtQuick3D.Particles3D
Since: Qt 6.2
继承: Particle3D

特性

详细描述

The SpriteParticle3D is a logical particle element that creates particles from a 2D sprite texture.

特性文档编制

BlendMode : enumeration

Defines the blending mode for the particles.

常量 描述
SpriteParticle3D.SourceOver Blend particles with SourceOver mode.
SpriteParticle3D.Screen Blend particles with Screen mode.
SpriteParticle3D.Multiply Blend particles with Multiply mode.

billboard : bool

This property defines if the particle texture should always be aligned face towards the screen.

注意: 当设为 true , Particle3D alignMode property does not have an effect.

默认值为 false .

blendMode : BlendMode

This property defines the blending mode used for rendering the particles.

默认值为 SpriteParticle3D.SourceOver .

colorTable : Texture

This property defines the Texture used for coloring the particles. The image can be a 1D or a 2D texture. Horizontal pixels determine the particle color over its lifeSpan . For example, when the particle is halfway through its life, it will have the color specified halfway across the image. If the image is 2D, vertical row is randomly selected for each particle. For example, a c {256 x 4} image contains 4 different coloring options for particles.

particleScale : real

This property defines the scale multiplier of the particles. To adjust the particles sizes in the emitter, use ParticleEmitter3D particleScale , particleEndScale ,和 particleScaleVariation 特性。

默认值为 5.0 .

sprite : Texture

This property defines the Texture used for the particles.

For example, to use "snowFlake.png" as the particles texture:

SpriteParticle3D {
    id: snowParticle
    ...
    sprite: Texture {
        source: "images/snowflake.png"
    }
}
					
spriteSequence : SpriteSequence3D

This property defines the sprite sequence properties for the particle. If the sprite texture contains a frame sequence, set this property to define the frame count, animation direction etc. features.