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 ) ) );