mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Adds simple samples for new particle features
This commit is contained in:
parent
aae957ec7b
commit
f1d62f348c
9 changed files with 134 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<actor version="1">
|
||||
<group>
|
||||
<variant name="Base">
|
||||
<particles file="simple_ray.xml"/>
|
||||
</variant>
|
||||
</group>
|
||||
</actor>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<actor version="1">
|
||||
<group>
|
||||
<variant name="Base">
|
||||
<particles file="simple_rings.xml"/>
|
||||
</variant>
|
||||
</group>
|
||||
</actor>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<actor version="1">
|
||||
<group>
|
||||
<variant name="Base">
|
||||
<particles file="simple_ripples.xml"/>
|
||||
</variant>
|
||||
</group>
|
||||
</actor>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<actor version="1">
|
||||
<group>
|
||||
<variant name="Base">
|
||||
<particles file="simple_water_splash.xml"/>
|
||||
</variant>
|
||||
</group>
|
||||
</actor>
|
||||
26
binaries/data/mods/public/art/particles/simple_ray.xml
Normal file
26
binaries/data/mods/public/art/particles/simple_ray.xml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<particles>
|
||||
<texture>art/textures/particles/raindrop.png</texture>
|
||||
<blend mode="add"/>
|
||||
|
||||
<start_full/>
|
||||
|
||||
<use_local_space/>
|
||||
|
||||
<constant name="emissionrate" value="5.0"/>
|
||||
<uniform name="lifetime" min="5.0" max="5.0"/>
|
||||
|
||||
<uniform name="position.y" min="5.0" max="5.0"/>
|
||||
|
||||
<constant name="angle" value="1.57079"/>
|
||||
|
||||
<uniform name="velocity.y" min="0.0" max="0.0"/>
|
||||
<uniform name="velocity.z" min="2.5" max="2.5"/>
|
||||
<uniform name="velocity.angle" min="0.0" max="0.0"/>
|
||||
|
||||
<uniform name="size" min="2.0" max="2.1"/>
|
||||
|
||||
<particle>
|
||||
<fixed_orientation name="axisX" mode="relative" z="1.0"/>
|
||||
</particle>
|
||||
</particles>
|
||||
19
binaries/data/mods/public/art/particles/simple_rings.xml
Normal file
19
binaries/data/mods/public/art/particles/simple_rings.xml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<particles>
|
||||
<texture>art/textures/particles/ring.png</texture>
|
||||
<blend mode="add"/>
|
||||
|
||||
<start_full/>
|
||||
<use_local_space/>
|
||||
|
||||
<constant name="emissionrate" value="5.0"/>
|
||||
<uniform name="lifetime" min="2.0" max="2.0"/>
|
||||
<uniform name="velocity.y" min="1.0" max="1.0"/>
|
||||
<constant name="size" value="2.0"/>
|
||||
|
||||
<force y="10.0"/>
|
||||
<particle>
|
||||
<fixed_orientation name="axisX" mode="absolute" x="1.0"/>
|
||||
<fixed_orientation name="axisY" mode="absolute" z="1.0"/>
|
||||
</particle>
|
||||
</particles>
|
||||
23
binaries/data/mods/public/art/particles/simple_ripples.xml
Normal file
23
binaries/data/mods/public/art/particles/simple_ripples.xml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<particles>
|
||||
<texture>art/textures/particles/ring.png</texture>
|
||||
<blend mode="add"/>
|
||||
|
||||
<start_full/>
|
||||
|
||||
<constant name="emissionrate" value="5.0"/>
|
||||
<uniform name="lifetime" min="5.0" max="5.0"/>
|
||||
|
||||
<uniform name="position.x" min="-5.0" max="5.0"/>
|
||||
<uniform name="position.z" min="-5.0" max="5.0"/>
|
||||
<uniform name="position.y" min="0.1" max="0.1"/>
|
||||
<constant name="velocity.y" value="0.0"/>
|
||||
|
||||
<uniform name="size" min="0.1" max="0.1"/>
|
||||
<constant name="size.growthRate" value="1.0"/>
|
||||
|
||||
<particle>
|
||||
<fixed_orientation name="axisX" mode="relative" x="1.0"/>
|
||||
<fixed_orientation name="axisY" mode="relative" z="1.0"/>
|
||||
</particle>
|
||||
</particles>
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<particles>
|
||||
<texture>art/textures/particles/raindrop.png</texture>
|
||||
<blend mode="add"/>
|
||||
|
||||
<start_full/>
|
||||
<use_relative_position/>
|
||||
<use_relative_velocity/>
|
||||
|
||||
<constant name="emissionrate" value="200.0"/>
|
||||
<uniform name="lifetime" min="2.0" max="2.2"/>
|
||||
|
||||
<uniform name="position.x" min="-0.2" max="0.2"/>
|
||||
<uniform name="position.z" min="-0.2" max="0.2"/>
|
||||
<uniform name="position.y" min="0.1" max="0.1"/>
|
||||
|
||||
<constant name="angle" value="-1.57079"/>
|
||||
|
||||
<uniform name="velocity.y" min="7.0" max="8.0"/>
|
||||
<uniform name="velocity.x" min="-2.0" max="2.0"/>
|
||||
<uniform name="velocity.z" min="-2.0" max="2.0"/>
|
||||
<uniform name="velocity.angle" min="0.0" max="0.0"/>
|
||||
|
||||
<uniform name="size" min="0.8" max="1.0"/>
|
||||
|
||||
<particle>
|
||||
<fixed_orientation name="axisX" mode="velocity" z="1.0"/>
|
||||
</particle>
|
||||
|
||||
<force y="-9.81"/>
|
||||
</particles>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:92750082fb874496a7cdd6d0c0dfac752758eebefc1aaf94564c0117e950cc0e
|
||||
size 2073
|
||||
Loading…
Reference in a new issue