Revision as of 09:17, 18 December 2020 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2021.1<br/> '''<translate>Class</translate>:''' Sprite<br/> === <tr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2021.1
Class: Sprite


Sets or remove post processing effects for this sprite.
The effect stack is an array of tables, each one describing a post processing stage. Each table can have the following fields:

  • buffer: A RenderTarget that will hold the input of this post processing stage
  • shader: A Shader that will be used to draw the buffer above onto the next stage, or on screen optional
  • transform: A Matrix to transform the input buffer before processing optional
  • postTransform: A Matrix to transform the final stage output before displaying optional
  • textures: An array of TextureBase to be used by the shader. By default the buffer is used. optional


effectStack: (table) A table describing the post processing phases to be applied
mode: (number) One of the Sprite.EFFECT_MODE_* constants optional