mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-14 13:22:23 +08:00
Fix bloom effect FBO's not using GL_LINEAR, no more blocky bloom
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
parent
30bb8d6d72
commit
e888bb452d
@ -74,7 +74,7 @@ CScene::CScene (Core::CScene* scene, CRenderContext* context) :
|
|||||||
this->_rt_4FrameBuffer = this->createFBO (
|
this->_rt_4FrameBuffer = this->createFBO (
|
||||||
"_rt_4FrameBuffer",
|
"_rt_4FrameBuffer",
|
||||||
ITexture::TextureFormat::ARGB8888,
|
ITexture::TextureFormat::ARGB8888,
|
||||||
ITexture::TextureFlags::NoInterpolation,
|
ITexture::TextureFlags::ClampUVs,
|
||||||
1.0,
|
1.0,
|
||||||
sceneWidth / 4, sceneHeight / 4,
|
sceneWidth / 4, sceneHeight / 4,
|
||||||
sceneWidth / 4, sceneHeight / 4
|
sceneWidth / 4, sceneHeight / 4
|
||||||
@ -82,7 +82,7 @@ CScene::CScene (Core::CScene* scene, CRenderContext* context) :
|
|||||||
this->_rt_8FrameBuffer = this->createFBO (
|
this->_rt_8FrameBuffer = this->createFBO (
|
||||||
"_rt_8FrameBuffer",
|
"_rt_8FrameBuffer",
|
||||||
ITexture::TextureFormat::ARGB8888,
|
ITexture::TextureFormat::ARGB8888,
|
||||||
ITexture::TextureFlags::NoInterpolation,
|
ITexture::TextureFlags::ClampUVs,
|
||||||
1.0,
|
1.0,
|
||||||
sceneWidth / 8, sceneHeight / 8,
|
sceneWidth / 8, sceneHeight / 8,
|
||||||
sceneWidth / 8, sceneHeight / 8
|
sceneWidth / 8, sceneHeight / 8
|
||||||
@ -90,7 +90,7 @@ CScene::CScene (Core::CScene* scene, CRenderContext* context) :
|
|||||||
this->_rt_Bloom = this->createFBO (
|
this->_rt_Bloom = this->createFBO (
|
||||||
"_rt_Bloom",
|
"_rt_Bloom",
|
||||||
ITexture::TextureFormat::ARGB8888,
|
ITexture::TextureFormat::ARGB8888,
|
||||||
ITexture::TextureFlags::NoInterpolation,
|
ITexture::TextureFlags::ClampUVs,
|
||||||
1.0,
|
1.0,
|
||||||
sceneWidth / 8, sceneHeight / 8,
|
sceneWidth / 8, sceneHeight / 8,
|
||||||
sceneWidth / 8, sceneHeight / 8
|
sceneWidth / 8, sceneHeight / 8
|
||||||
|
@ -788,7 +788,6 @@ void CPass::setupShaderVariables ()
|
|||||||
for (const auto& cur : this->m_fragShader->getParameters ())
|
for (const auto& cur : this->m_fragShader->getParameters ())
|
||||||
if (this->m_uniforms.find (cur->getName ()) == this->m_uniforms.end ())
|
if (this->m_uniforms.find (cur->getName ()) == this->m_uniforms.end ())
|
||||||
this->addUniform (cur);
|
this->addUniform (cur);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// define some basic methods for the template
|
// define some basic methods for the template
|
||||||
|
Loading…
Reference in New Issue
Block a user