<effect> (//pfx/effect)

The <effect> element defines the entire actual rendering procedure of a PFX effect

The <effect> element defines an entire actual rendering procedure, by defining <pass> elements that execute sequentially to render with different pipelines to the same or different targets.

XML Attributes (<effect> element)

ATTRIBUTE

Description

name

(OPTIONAL) A unique text identifier for this effect.

The effects are considered ordered, so the implementation will usually identify it by index, for example, effects[0].

Child elements (<effect> element)

ELEMENT

Description/attributes

<pass>

(OPTIONAL) Specifies a pass.

If only one pass is defined and renders to the screen framebuffer, the <pass> tag can be omitted and its child elements added inline in the <effect> block. While it is not invalid to not have a pass (even an implicit one), such a PFX would be meaningless.