mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 01:00:44 +02:00
Cleanup.
This commit is contained in:
parent
edd119ccdc
commit
11be8c752b
1 changed files with 2 additions and 3 deletions
|
@ -112,8 +112,8 @@ void AmbientOcclusionEffect::render() {
|
||||||
_occlusionProgram->setUniformValue(_leftBottomLocation, left, bottom);
|
_occlusionProgram->setUniformValue(_leftBottomLocation, left, bottom);
|
||||||
_occlusionProgram->setUniformValue(_rightTopLocation, right, top);
|
_occlusionProgram->setUniformValue(_rightTopLocation, right, top);
|
||||||
QSize size = Application::getInstance()->getGLWidget()->size();
|
QSize size = Application::getInstance()->getGLWidget()->size();
|
||||||
QVector2D noiseScale(size.width() / (float)ROTATION_WIDTH, size.height() / (float)ROTATION_HEIGHT);
|
_occlusionProgram->setUniformValue(_noiseScaleLocation, size.width() / (float)ROTATION_WIDTH,
|
||||||
_occlusionProgram->setUniformValue(_noiseScaleLocation, noiseScale);
|
size.height() / (float)ROTATION_HEIGHT);
|
||||||
|
|
||||||
renderFullscreenQuad();
|
renderFullscreenQuad();
|
||||||
|
|
||||||
|
@ -141,7 +141,6 @@ void AmbientOcclusionEffect::render() {
|
||||||
|
|
||||||
glBindTexture(GL_TEXTURE_2D, 0);
|
glBindTexture(GL_TEXTURE_2D, 0);
|
||||||
|
|
||||||
//glEnable(GL_BLEND);
|
|
||||||
glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_CONSTANT_ALPHA, GL_ONE);
|
glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_CONSTANT_ALPHA, GL_ONE);
|
||||||
glEnable(GL_DEPTH_TEST);
|
glEnable(GL_DEPTH_TEST);
|
||||||
glDepthMask(GL_TRUE);
|
glDepthMask(GL_TRUE);
|
||||||
|
|
Loading…
Reference in a new issue