diff --git a/Managers/PostProcessMan.cpp b/Managers/PostProcessMan.cpp index 37a48d92e..e31b43c74 100644 --- a/Managers/PostProcessMan.cpp +++ b/Managers/PostProcessMan.cpp @@ -534,12 +534,12 @@ namespace RTE { effectStrength = postEffect.m_Strength / 255.f; effectPosX = postEffect.m_Pos.m_X; effectPosY = postEffect.m_Pos.m_Y; - m_PostProcessShader->SetVector4f(m_PostProcessShader->GetColorUniform(), glm::vec4(effectStrength)); + m_PostProcessShader->SetVector4f(m_PostProcessShader->GetColorUniform(), glm::vec4(effectStrength, effectStrength, effectStrength, 1.0f)); glm::mat4 transformMatrix(1); transformMatrix = glm::translate(transformMatrix, glm::vec3(effectPosX, effectPosY, 0)); - transformMatrix = glm::scale(transformMatrix, glm::vec3(effectBitmap->w * 0.5f, effectBitmap->h * 0.5f, 1.0)); transformMatrix = glm::rotate(transformMatrix, -postEffect.m_Angle, glm::vec3(0, 0, 1)); + transformMatrix = glm::scale(transformMatrix, glm::vec3(effectBitmap->w * 0.5f, effectBitmap->h * 0.5f, 1.0)); glBindTexture(GL_TEXTURE_2D, reinterpret_cast(postEffect.m_Bitmap->extra)->m_Texture); m_PostProcessShader->SetMatrix4f(m_PostProcessShader->GetTransformUniform(), transformMatrix);