16#ifndef QGSBLOOMRENDERVIEW_H
17#define QGSBLOOMRENDERVIEW_H
35 class QRenderStateSet;
66 QgsBloomRenderView(
const QString &viewName, Qt3DRender::QTexture2D *sourceColorTexture,
const QSize &size, Qt3DCore::QEntity *rootSceneEntity );
90 void buildRenderPasses( Qt3DRender::QTexture2D *sourceTexture, Qt3DCore::QEntity *rootEntity );
94 static const int MIP_PASSES = 5;
98 std::vector<Qt3DRender::QTexture2D *> mTextures;
100 Qt3DRender::QParameter *mFilterRadiusParameter =
nullptr;
101 Qt3DRender::QParameter *mAspectRatioParameter =
nullptr;
QgsAbstractRenderView(const QString &viewName)
Constructor for QgsAbstractRenderView with the specified parent object.
An entity responsible for applying a 13-tap downsample filter for physically based bloom.
~QgsBloomRenderView() override
QgsBloomRenderView(const QString &viewName, Qt3DRender::QTexture2D *sourceColorTexture, const QSize &size, Qt3DCore::QEntity *rootSceneEntity)
Default constructor.
void updateWindowResize(int width, int height) override
Called when 3D window is resized.
void setFilterRadius(float radius)
Sets the bloom filter radius.
Qt3DRender::QTexture2D * bloomTexture() const
Returns the texture containing the final bloom effect.
void setAspectRatio(float ratio)
Sets the aspect ratio of the view.
void setEnabled(bool enabled) override
Enable or disable via enable the render view sub tree.
An entity responsible for applying a 9-tap tent upsample filter for physically based bloom.
An entity that is responsible for rendering a screen quad for a specific rendering pass.