diff options
author | Vaxry <[email protected]> | 2024-11-05 16:28:55 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-11-05 16:28:55 +0000 |
commit | 81ad218b8b082ce4c9b04bbb668d3c219fc4ff6f (patch) | |
tree | 2d10a664b82943242392d4d7364aa933066697af | |
parent | 64c46db0872a576a993035ac1fa5e40af53ca001 (diff) | |
download | Hyprland-81ad218b8b082ce4c9b04bbb668d3c219fc4ff6f.tar.gz Hyprland-81ad218b8b082ce4c9b04bbb668d3c219fc4ff6f.zip |
shadow: fix double premultiplication
shader takes straight alpha aaaa
-rw-r--r-- | src/render/OpenGL.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 52392436..eb0a029f 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -2485,7 +2485,7 @@ void CHyprOpenGLImpl::renderRoundedShadow(CBox* box, int round, int range, const glMatrix.transpose(); glUniformMatrix3fv(m_RenderData.pCurrentMonData->m_shSHADOW.proj, 1, GL_FALSE, glMatrix.getMatrix().data()); #endif - glUniform4f(m_RenderData.pCurrentMonData->m_shSHADOW.color, col.r * col.a * a, col.g * col.a * a, col.b * col.a * a, col.a * a); + glUniform4f(m_RenderData.pCurrentMonData->m_shSHADOW.color, col.r, col.g, col.b, col.a * a); const auto TOPLEFT = Vector2D(range + round, range + round); const auto BOTTOMRIGHT = Vector2D(box->width - (range + round), box->height - (range + round)); |