blob: b9777980eaea0626c7f9378070ab91cba5faa3cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtQuick3D
import QtQuick3D.Particles3D
ParticleSystem3D {
id: lightRain
y: 2000
ParticleEmitter3D {
id: lightRainEmitter
emitRate: 50
lifeSpan: 500
particle: lightRainParticle
particleScale: 0.75
particleScaleVariation: 0.25
velocity: lightRainDirection
shape: lightRainShape
depthBias: -200
VectorDirection3D {
id: lightRainDirection
direction.y: -(lightRain.y * 2)
}
SpriteParticle3D {
id: lightRainParticle
color: "#90e6f4ff"
maxAmount: 100
particleScale: 85
fadeInDuration: 0
fadeOutDuration: 10
fadeOutEffect: Particle3D.FadeOpacity
sortMode: Particle3D.SortDistance
sprite: lightRainTexture
offsetY: particleScale / 2
billboard: true
Texture {
id: lightRainTexture
source: "rain.png"
}
SpriteSequence3D {
id: lightRainSequence
duration: 15
randomStart: true
animationDirection: SpriteSequence3D.Normal
frameCount: 3
interpolate: true
}
}
}
ParticleShape3D {
id: lightRainShape
extents.x: 500
extents.y: 0.01
extents.z: 500
type: ParticleShape3D.Cube
fill: true
}
TrailEmitter3D {
id: lightRainSplashEmitter
emitRate: 0
lifeSpan: 800
particle: lightRainSplashParticle
particleScale: 15
particleScaleVariation: 15
follow: lightRainParticle
emitBursts: lightRainSplashBurst
depthBias: -10
SpriteParticle3D {
id: lightRainSplashParticle
color: "#8bc0e7fb"
maxAmount: 250
sprite: lightRainSplashTexture
spriteSequence: lightRainSplashSequence
fadeInDuration: 450
fadeOutDuration: 800
fadeInEffect: Particle3D.FadeScale
fadeOutEffect: Particle3D.FadeOpacity
sortMode: Particle3D.SortDistance
billboard: true
offsetY: particleScale / 2
Texture {
id: lightRainSplashTexture
source: "splash7.png"
}
SpriteSequence3D {
id: lightRainSplashSequence
duration: 800
frameCount: 6
}
}
DynamicBurst3D {
id: lightRainSplashBurst
amount: 1
triggerMode: DynamicBurst3D.TriggerEnd
}
}
}
|