OpenWalnut
1.5.0dev
|
This class encapsulates a G-Buffer. More...
#include <WGEPostprocessor.h>
Public Member Functions | |
PostprocessorInput (std::vector< osg::ref_ptr< osg::Texture2D > > from) | |
Constructs an instance from a given list of textures. More... | |
PostprocessorInput (osg::ref_ptr< osg::Texture2D > color, osg::ref_ptr< osg::Texture2D > normal, osg::ref_ptr< osg::Texture2D > parameter, osg::ref_ptr< osg::Texture2D > tangent, osg::ref_ptr< osg::Texture2D > depth) | |
Construct GBuffer with an explicit list of textures. More... | |
PostprocessorInput () | |
Constructor creates empty GBuffer. More... | |
size_t | bind (osg::ref_ptr< WGEOffscreenRenderPass > to) const |
Attaches these textures to the specified renderpass. More... | |
Static Public Member Functions | |
static PostprocessorInput | attach (osg::ref_ptr< WGEOffscreenRenderPass > from) |
Attaches the needed textures to the specified render pass and returns the G-Buffer. More... | |
Public Attributes | |
osg::ref_ptr< osg::Texture2D > | m_colorTexture |
Color in RGBA. More... | |
osg::ref_ptr< osg::Texture2D > | m_normalTexture |
Normal in RGB. More... | |
osg::ref_ptr< osg::Texture2D > | m_parameterTexture |
Some not yet defined parameter texture, LUMINANCE only. More... | |
osg::ref_ptr< osg::Texture2D > | m_tangentTexture |
Tangent in RGB. More... | |
osg::ref_ptr< osg::Texture2D > | m_depthTexture |
Depth. More... | |
This class encapsulates a G-Buffer.
Basically, this is a collection of per-pixel geometry information.
Definition at line 54 of file WGEPostprocessor.h.
|
explicit |
Constructs an instance from a given list of textures.
The order in the list define color, normal, parameter, tangent, depth. There are no restrictions to the input list. If textures are missing, the corresponding textures in the GBuffer are missing.
from | source list |
Definition at line 91 of file WGEPostprocessor.cpp.
References WGEPostprocessor::m_depthTexture.
WGEPostprocessor::PostprocessorInput::PostprocessorInput | ( | osg::ref_ptr< osg::Texture2D > | color, |
osg::ref_ptr< osg::Texture2D > | normal, | ||
osg::ref_ptr< osg::Texture2D > | parameter, | ||
osg::ref_ptr< osg::Texture2D > | tangent, | ||
osg::ref_ptr< osg::Texture2D > | depth | ||
) |
Construct GBuffer with an explicit list of textures.
color | color texture |
normal | normal texture |
parameter | parameter texture |
tangent | tangent texture |
depth | depth texture |
Definition at line 115 of file WGEPostprocessor.cpp.
WGEPostprocessor::PostprocessorInput::PostprocessorInput | ( | ) |
Constructor creates empty GBuffer.
All textures are un-initialized.
Definition at line 86 of file WGEPostprocessor.cpp.
|
static |
Attaches the needed textures to the specified render pass and returns the G-Buffer.
from | the renderpass to attach this to |
Definition at line 128 of file WGEPostprocessor.cpp.
References m_colorTexture, m_depthTexture, m_normalTexture, m_parameterTexture, and m_tangentTexture.
Referenced by WGEPostprocessingNode::WGEPostprocessingNode().
size_t WGEPostprocessor::PostprocessorInput::bind | ( | osg::ref_ptr< WGEOffscreenRenderPass > | to | ) | const |
Attaches these textures to the specified renderpass.
to | attach to this |
Definition at line 140 of file WGEPostprocessor.cpp.
References WGEPostprocessor::m_depthTexture.
Referenced by WGEPostprocessorCelShading::WGEPostprocessorCelShading(), WGEPostprocessorEdgeEnhance::WGEPostprocessorEdgeEnhance(), WGEPostprocessorHalftone::WGEPostprocessorHalftone(), WGEPostprocessorLineAO::WGEPostprocessorLineAO(), and WGEPostprocessorSSAO::WGEPostprocessorSSAO().
osg::ref_ptr< osg::Texture2D > WGEPostprocessor::PostprocessorInput::m_colorTexture |
Color in RGBA.
Definition at line 106 of file WGEPostprocessor.h.
Referenced by attach(), WGEPostprocessorGauss::create(), and WGEPostprocessorMergeOp::create().
osg::ref_ptr< osg::Texture2D > WGEPostprocessor::PostprocessorInput::m_depthTexture |
Depth.
Definition at line 126 of file WGEPostprocessor.h.
Referenced by attach(), WGEPostprocessingNode::WGEPostprocessingNode(), WGEPostprocessorHalftone::WGEPostprocessorHalftone(), and WGEPostprocessorLineAO::WGEPostprocessorLineAO().
osg::ref_ptr< osg::Texture2D > WGEPostprocessor::PostprocessorInput::m_normalTexture |
Normal in RGB.
Definition at line 111 of file WGEPostprocessor.h.
Referenced by attach(), WGEPostprocessorHalftone::WGEPostprocessorHalftone(), and WGEPostprocessorLineAO::WGEPostprocessorLineAO().
osg::ref_ptr< osg::Texture2D > WGEPostprocessor::PostprocessorInput::m_parameterTexture |
Some not yet defined parameter texture, LUMINANCE only.
Definition at line 116 of file WGEPostprocessor.h.
Referenced by attach().
osg::ref_ptr< osg::Texture2D > WGEPostprocessor::PostprocessorInput::m_tangentTexture |
Tangent in RGB.
Definition at line 121 of file WGEPostprocessor.h.
Referenced by attach(), WGEPostprocessorHalftone::WGEPostprocessorHalftone(), and WGEPostprocessorLineAO::WGEPostprocessorLineAO().