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:
[[XML|Back to XML Overview ]]
+
{{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>&lt;blend-mode src="src_alpha" dest="one"/&gt;</tt> However, to enable particles to contain dark colors (and not have the brightness used as an alpha value), you could use <tt>&lt;blend-mode src="src_alpha" dest="one_minus_src_alpha"/&gt;</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==

Please note that all contributions to MegaGlest are considered to be released under the Creative Commons Attribution Share Alike (see MegaGlest:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Template used on this page: