Editing XML/Splash particle
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | {{XMLs}} | |
− | |||
Splash [[particle]] systems are most commonly used to create special effects from a unit being attacked. | Splash [[particle]] systems are most commonly used to create special effects from a unit being attacked. | ||
+ | {{TOC limit|2}} | ||
==XML== | ==XML== | ||
+ | {{XML_definition_header}} | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<?xml version="1.0" standalone="yes"?> | <?xml version="1.0" standalone="yes"?> | ||
Line 65: | Line 66: | ||
===vertical-spread and horizontal-spread=== | ===vertical-spread and horizontal-spread=== | ||
{{See|Particles/Spread}} | {{See|Particles/Spread}} | ||
+ | |||
+ | ===blend-mode=== | ||
+ | An optional GAE only value that sets the blend mode for the particle system. For details, see the OpenGL reference for the glBlendFunc() function. | ||
+ | |||
+ | Legal values are: | ||
+ | *<tt>zero</tt> | ||
+ | *<tt>one</tt> | ||
+ | *<tt>src_color</tt> | ||
+ | *<tt>one_minus_src_color</tt> | ||
+ | *<tt>dst_color</tt> | ||
+ | *<tt>one_minus_dst_color</tt> | ||
+ | *<tt>src_alpha</tt> | ||
+ | *<tt>one_minus_src_alpha</tt> | ||
+ | *<tt>dst_alpha</tt> | ||
+ | *<tt>one_minus_dst_alpha</tt> | ||
+ | *<tt>constant_color</tt> | ||
+ | *<tt>one_minus_constant_color</tt> | ||
+ | *<tt>constant_alpha</tt> | ||
+ | *<tt>one_minus_constant_alpha</tt> | ||
+ | *<tt>src_alpha_saturate</tt> (cannot be used for dest) | ||
+ | |||
+ | The value is optional, and if not specified, the default is the same as classic [[Glest]] behavior, equivalent to <tt><blend-mode src="src_alpha" dest="one"/></tt> However, to enable particles to contain dark colors (and not have the brightness used as an alpha value), you could use <tt><blend-mode src="src_alpha" dest="one_minus_src_alpha"/></tt> | ||
+ | |||
+ | ===blend-equation=== | ||
+ | A GAE only optional value that sets the blend equation for the particle system. For details, see the OpenGL reference for the glBlendEquation() function. | ||
+ | |||
+ | Legal values are: | ||
+ | *<tt>func_add</tt> | ||
+ | *<tt>func_subtract</tt> | ||
+ | *<tt>func_reverse_subtract</tt> | ||
+ | *<tt>min</tt> | ||
+ | *<tt>max</tt> | ||
+ | |||
+ | If not specified, it defaults to the Glest default of <tt>func_add</tt> | ||
==See also== | ==See also== |