|
Monad Engine da02fba2
> Undercity Codex_
|
#include <PostProcess.h>
Public Member Functions | |
| bool | Init () |
| void | Destroy () |
| void | Resize (int w, int h) |
| Lazily resize the internal output FBO to match the scene target. | |
| void | RunOutline (const RenderTarget &scene, const CameraData &cam) |
Run the outline pass, sampling scene and writing to OutputTex(). | |
| GLuint | OutputTex () const |
| bool | IsValid () const |
Public Attributes | |
| float | depthEdgeStrength = 0.4F |
| float | normalEdgeStrength = 0.3F |
Definition at line 26 of file PostProcess.h.
| void mnd::PostProcess::Destroy | ( | ) |
Definition at line 116 of file PostProcess.cpp.
Referenced by mnd::Engine::Destroy().
| bool mnd::PostProcess::Init | ( | ) |
Definition at line 82 of file PostProcess.cpp.
References mnd::Engine::GetFileSystem(), mnd::Engine::GetInstance(), mnd::FileSystem::LoadAssetFileText(), and LOG_ERROR.
Referenced by mnd::Engine::Init().
|
inline |
Definition at line 39 of file PostProcess.h.
Referenced by mnd::Engine::Run().
|
inline |
Definition at line 38 of file PostProcess.h.
Referenced by mnd::Engine::Run().
| void mnd::PostProcess::Resize | ( | int | w, |
| int | h | ||
| ) |
Lazily resize the internal output FBO to match the scene target.
Definition at line 178 of file PostProcess.cpp.
Referenced by RunOutline().
| void mnd::PostProcess::RunOutline | ( | const RenderTarget & | scene, |
| const CameraData & | cam | ||
| ) |
Run the outline pass, sampling scene and writing to OutputTex().
Definition at line 187 of file PostProcess.cpp.
References mnd::RenderTarget::ColorTex(), depthEdgeStrength, mnd::RenderTarget::DepthTex(), mnd::Engine::GetInstance(), mnd::Engine::GetRenderSettings(), mnd::RenderTarget::Height(), mnd::RenderTarget::IsValid(), normalEdgeStrength, mnd::RenderTarget::NormalTex(), mnd::RenderSettings::pixelSize, Resize(), and mnd::RenderTarget::Width().
Referenced by mnd::Engine::Run().
| float mnd::PostProcess::depthEdgeStrength = 0.4F |
Definition at line 42 of file PostProcess.h.
Referenced by mnd::Engine::Run(), and RunOutline().
| float mnd::PostProcess::normalEdgeStrength = 0.3F |
Definition at line 43 of file PostProcess.h.
Referenced by mnd::Engine::Run(), and RunOutline().