|
VisuTwin Canvas
C++ 3D Engine — Metal Backend
|
#include <scene/graphics/renderPassDof.h>
Public Member Functions | |
| Texture * | blurTexture () const |
| Texture * | cocTexture () const |
| void | frameUpdate () const override |
| RenderPassDof (const std::shared_ptr< GraphicsDevice > &device, CameraComponent *cameraComponent, Texture *sceneTexture, Texture *sceneTextureHalf, bool highQuality, bool nearBlur) | |
| Public Member Functions inherited from visutwin::canvas::RenderPass | |
| void | addAfterPass (const std::shared_ptr< RenderPass > &renderPass) |
| void | addBeforePass (const std::shared_ptr< RenderPass > &renderPass) |
| virtual void | after () |
| const std::vector< std::shared_ptr< RenderPass > > & | afterPasses () const |
| void | allocateAttachments () |
| virtual void | before () |
| const std::vector< std::shared_ptr< RenderPass > > & | beforePasses () const |
| void | clearAfterPasses () |
| void | clearBeforePasses () |
| const std::vector< std::shared_ptr< ColorAttachmentOps > > & | colorArrayOps () const |
| std::shared_ptr< ColorAttachmentOps > | colorOps () const |
| std::shared_ptr< DepthStencilAttachmentOps > | depthStencilOps () const |
| bool | enabled () const |
| virtual void | execute () |
| virtual void | init (const std::shared_ptr< RenderTarget > &renderTarget=nullptr, const std::shared_ptr< RenderPassOptions > &options=nullptr) |
| void | log (std::shared_ptr< GraphicsDevice > device, int index=0) const |
| virtual void | onDisable () |
| virtual void | onEnable () |
| virtual void | postInit () |
| void | render () |
| RenderPass (const std::shared_ptr< GraphicsDevice > &device) | |
| std::shared_ptr< RenderTarget > | renderTarget () const |
| bool | requiresCubemaps () const |
| float | scaleX () const |
| float | scaleY () const |
| void | setClearColor (const Color *color=nullptr) |
| void | setClearDepth (const float *depthValue=nullptr) |
| void | setClearStencil (const int *stencilValue=nullptr) |
| void | setEnabled (bool value) |
| void | setOptions (const std::shared_ptr< RenderPassOptions > &value) |
| void | setRequiresCubemaps (bool value) |
| void | setSkipEnd (const bool value) |
| void | setSkipStart (const bool value) |
Public Attributes | |
| float | blurRadius = 3.0f |
| int | blurRingPoints = 5 |
| int | blurRings = 4 |
| float | focusDistance = 100.0f |
| float | focusRange = 10.0f |
| bool | highQuality = true |
| bool | nearBlur = false |
Additional Inherited Members | |
| Protected Member Functions inherited from visutwin::canvas::RenderPass | |
| std::shared_ptr< GraphicsDevice > | device () const |
| Protected Attributes inherited from visutwin::canvas::RenderPass | |
| std::string | _name |
| bool | _requiresCubemaps = true |
Definition at line 14 of file renderPassDof.h.
| visutwin::canvas::RenderPassDof::RenderPassDof | ( | const std::shared_ptr< GraphicsDevice > & | device, |
| CameraComponent * | cameraComponent, | ||
| Texture * | sceneTexture, | ||
| Texture * | sceneTextureHalf, | ||
| bool | highQuality, | ||
| bool | nearBlur ) |
Definition at line 11 of file renderPassDof.cpp.
References visutwin::canvas::RenderPass::addBeforePass(), visutwin::canvas::RenderPassDownsample::Options::boxFilter, visutwin::canvas::RenderPass::device(), visutwin::canvas::Texture::format(), highQuality, nearBlur, visutwin::canvas::PIXELFORMAT_R8, visutwin::canvas::PIXELFORMAT_RG8, visutwin::canvas::PIXELFORMAT_RGBA8, visutwin::canvas::RenderPassDownsample::Options::premultiplySrcChannel, visutwin::canvas::RenderPassDownsample::Options::premultiplyTexture, and visutwin::canvas::RenderPass::RenderPass().
|
inline |
Definition at line 31 of file renderPassDof.h.
|
inline |
Definition at line 30 of file renderPassDof.h.
|
overridevirtual |
Reimplemented from visutwin::canvas::RenderPass.
Definition at line 70 of file renderPassDof.cpp.
References blurRadius, blurRingPoints, blurRings, focusDistance, focusRange, visutwin::canvas::RenderPass::frameUpdate(), and highQuality.
| float visutwin::canvas::RenderPassDof::blurRadius = 3.0f |
Definition at line 24 of file renderPassDof.h.
Referenced by frameUpdate().
| int visutwin::canvas::RenderPassDof::blurRingPoints = 5 |
Definition at line 26 of file renderPassDof.h.
Referenced by frameUpdate().
| int visutwin::canvas::RenderPassDof::blurRings = 4 |
Definition at line 25 of file renderPassDof.h.
Referenced by frameUpdate().
| float visutwin::canvas::RenderPassDof::focusDistance = 100.0f |
Definition at line 22 of file renderPassDof.h.
Referenced by frameUpdate().
| float visutwin::canvas::RenderPassDof::focusRange = 10.0f |
Definition at line 23 of file renderPassDof.h.
Referenced by frameUpdate().
| bool visutwin::canvas::RenderPassDof::highQuality = true |
Definition at line 27 of file renderPassDof.h.
Referenced by frameUpdate(), and RenderPassDof().
| bool visutwin::canvas::RenderPassDof::nearBlur = false |
Definition at line 28 of file renderPassDof.h.
Referenced by RenderPassDof().