SoPostEffectMainGeometry¶
- InventorModule¶
author
package
dll
definition
Purpose¶
The SoPostEffectMainGeometry module renders the given input scene into buffers for the SoPostEffectRenderer module.
By default, it renders to the “colorBuffer” and “depthBuffer”. If other effects require normals or emissive colors, it also renders to “normalBuffer” and “emissiveBuffer”.
This module should be one of the first in the scene, as it provides the geometry onto which the effects are applied.
It can also write extra data to a so called “auxiliaryBuffer”.
If enabled via Write Auxiliary Buffer, a custom SoShaderPipelineFunction can write auxiliary data to the vec4 state “auxOutput” and this will be written to the aux buffer.
This module makes use of the SoShaderPipeline, this means that fixed-function texturing in the scene below the module will have limited functionality and will require writing your own SoShaderPipelineFunction to implement automatic texture coordinate generation. If you want to change the settings of the SoShaderPipeline that is used in the scene below, you can place an extra SoShaderPipeline into the scene, this will allow you to customize the used shader.
Input Fields¶
child¶
- name: child, type: SoNode¶
The input scene.
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visible Fields¶
Enabled¶
- name: enabled, type: Bool, default: TRUE¶
If checked, the effect is enabled.
Force Normal Buffer¶
- name: forceNormalBuffer, type: Bool, default: FALSE¶
If checked, rendering to the normal buffer is forced.
Force Emissive Buffer¶
- name: forceEmissiveBuffer, type: Bool, default: FALSE¶
If checked, rendering to the emissive buffer is forced.
Write Auxiliary Buffer¶
- name: writeAuxiliaryBuffer, type: Bool, default: FALSE¶
If checked, writing the vec4 state auxOutput to the aux buffer is enabled.
Only Render Opaque Objects¶
- name: onlyRenderOpaqueObjects, type: Bool, default: FALSE¶
If checked, only objects with alpha == 1 are rendered.
Clear Color Buffer¶
- name: clearColorBuffer, type: Bool, default: FALSE¶
If checked, the color buffer is cleared.
Color Buffer Name¶
- name: colorBufferName, type: String, default: colorBuffer¶
Sets the name of the color buffer.
Normal Buffer Name¶
- name: normalBufferName, type: String, default: normalBuffer¶
Sets the name of the normal buffer.
Depth Buffer Name¶
- name: depthBufferName, type: String, default: depthBuffer¶
Sets the name of the depth buffer.
Emissive Buffer Name¶
- name: emissiveBufferName, type: String, default: emissiveBuffer¶
Sets the name of the emissive buffer.
Auxiliary Buffer Name¶
- name: auxiliaryBufferName, type: String, default: auxBuffer¶
Sets the name of the auxiliary buffer.
Auxiliary Buffer Type¶
- name: auxiliaryBufferType, type: Enum, default: RGBA8¶
Values:
Title |
Name |
|---|---|
Rgb8 |
RGB8 |
Rgba8 |
RGBA8 |
Rgb16f |
RGB16F |
Rgba16f |
RGBA16F |
Rgb32f |
RGB32F |
Rgba32f |
RGBA32F |
Rgb10 A2 |
RGB10_A2 |
R8 |
R8 |
R16f |
R16F |
R32f |
R32F |