[ Back to Geeks3D.com ]
 GeeXLab
Laboratory for Real Time 3D Programming (prototyping and demos) OpenGL, Lua, Python, GLSL, PhysX and more...Reference Guide XML Nodes
» Back to homepage
» Back to Developer's Guide Index
<post_processing> XML Node
<post_processing
name=""
active="TRUE"
>
<effect
name=""
active="TRUE"
>
<phase
name=""
active="TRUE"
>
<step
name=""
active="TRUE"
target=""
gpu_shader=""
>
<texture
name=""
render_texture=""
render_texture_type=""
render_texture_index=""
>
</texture>
</step>
</phase>
</effect>
</post_processing>
<post_processing>
The post_processing node allows the creation of post processing effects. Image filtering or depth of filed are examples of post processing effects.
post_processing element has 2 attributes and 1 sub-element(s)
- name [STRING]: name of the post processing object
- active [BOOLEAN]: enables or disables the post processing. - Default value = TRUE - Values = TRUE, FALSE
<effect>
Post processing effect.
effect element has 2 attributes and 1 sub-element(s)
- name [STRING]: name of the effect
- active [BOOLEAN]: enables or disables the effect. - Default value = TRUE - Values = TRUE, FALSE
<phase>
Post processing effect phase.
phase element has 2 attributes and 1 sub-element(s)
- name [STRING]: name of the phase
- active [BOOLEAN]: enables or disables the phase. - Default value = TRUE - Values = TRUE, FALSE
<step>
Post processing effect phase step.
step element has 4 attributes and 1 sub-element(s)
- name [STRING]: name of the step
- active [BOOLEAN]: enables or disables the step. - Default value = TRUE - Values = TRUE, FALSE
- target [STRING]: Specifies the output of this step (the place where the gpu shader will write): either a render texture name or FRAMEBUFFER.
- gpu_shader [STRING]: Specifies the GPU shader to be used in this step. This shader will perform the step and write results in target render texture.
<texture>
Allows to specify an input texture for the current step. This texture is used by the GPU shader (uniform variable). The input texture can be a regular texture (node texture in XML for example) or a render texture (node render_texture in XML for example).
texture element has 4 attributes and 0 sub-element(s)
- name [STRING]: Specifies the name of a regular texture as input for the GPU shader.
- render_texture [STRING]: Specifies the name of a render texture as input for the GPU shader.
- render_texture_type [ENUM]: Specifies the type of the render texture. - Values = COLOR, DEPTH
- render_texture_index [INTEGER]: A render texture can have several textures (color, depth). render_texture_index allows to specify which texture to use as input for the GPU shader.
|