LookingGlass/client/renderers/EGL/shader/splash_logo.vert
Quantum 8559b354ae [client] egl: always render desktop texture as opaque
We ask for 32-bit colour buffer when creating the EGL context. On Wayland,
this sometimes give contexts with alpha channels, resulting in unwanted
transparency. So we clear the alpha channel in the desktop shader.

We also switch to using constant alpha for blending the splash, which
avoids more alpha issues.
2021-02-21 10:31:48 +11:00

13 lines
211 B
GLSL

#version 300 es
layout(location = 0) in vec3 vertexPosition_modelspace;
uniform float scale;
void main()
{
gl_Position.xyz = vertexPosition_modelspace;
gl_Position.y *= scale;
gl_Position.w = 1.0;
}