18#include <Qt3DRender/QParameter>
23 mAmbientOcclusionFactorTextureParameter =
new Qt3DRender::QParameter( QStringLiteral(
"texture" ), texture );
24 mMaterial->addParameter( mAmbientOcclusionFactorTextureParameter );
26 const QString vertexShaderPath = QStringLiteral(
"qrc:/shaders/ssao_factor_blur.vert" );
27 const QString fragmentShaderPath = QStringLiteral(
"qrc:/shaders/ssao_factor_blur.frag" );
29 mShader->setVertexShaderCode( Qt3DRender::QShaderProgram::loadSource( QUrl( vertexShaderPath ) ) );
30 mShader->setFragmentShaderCode( Qt3DRender::QShaderProgram::loadSource( QUrl( fragmentShaderPath ) ) );
QgsAmbientOcclusionBlurEntity(Qt3DRender::QTexture2D *texture, QNode *parent=nullptr)
Constructor.
Qt3DRender::QShaderProgram * mShader
Qt3DRender::QMaterial * mMaterial