part_type_blend

Sets a particle types blend mode.

语法:

part_type_blend(ind, additive);


参数 描述
ind The index of the particle type to change.
additive Whether the particles should be blended additively (true) or normally (false).


返回: N/A(无返回值)


描述

With this function you can make your particles be drawn with an additive blend mode (true) or not (false). Additive blending is a special blend mode that adds the luminosity values of each particle as they overlap, so that light colours will gradually get brighter (until they appear white) as they overlap, and dark colours become more and more transparent with black being almost invisible. This function can give some beautiful particle effects but may not always be necessary. For example, a smoke trail would have additive blending off to keep the effect gray, but a flame effect would probably have it on to make the particles more translucent and brighter.


例如:

part_type_blend(part_Fire, true);

The above code will set all particles created of the particle type indexed in the variable "part_Fire" to have an additive blend mode.


上一页: Particle Types
下一页: part_type_life
© Copyright YoYo Games Ltd. 2018 All Rights Reserved