[effects/startupfeedback] Fix shader
Provide both 1.10 and 1.40 shaders. Differential Revision: https://phabricator.kde.org/D18757
This commit is contained in:
parent
64115d4de2
commit
bc5978b759
3 changed files with 18 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
<file alias="invert.frag">invert/data/1.10/invert.frag</file>
|
||||
<file alias="logout-blur.frag">logout/data/1.10/logout-blur.frag</file>
|
||||
<file alias="lookingglass.frag">lookingglass/data/1.10/lookingglass.frag</file>
|
||||
<file alias="blinking-startup-fragment.glsl">startupfeedback/data/blinking-startup-fragment.glsl</file>
|
||||
<file alias="blinking-startup-fragment.glsl">startupfeedback/data/1.10/blinking-startup-fragment.glsl</file>
|
||||
</qresource>
|
||||
<qresource prefix="/effect-shaders-1.40">
|
||||
<file alias="coverswitch-reflection.glsl">coverswitch/shaders/1.40/coverswitch-reflection.glsl</file>
|
||||
|
@ -19,6 +19,7 @@
|
|||
<file alias="invert.frag">invert/data/1.40/invert.frag</file>
|
||||
<file alias="logout-blur.frag">logout/data/1.40/logout-blur.frag</file>
|
||||
<file alias="lookingglass.frag">lookingglass/data/1.40/lookingglass.frag</file>
|
||||
<file alias="blinking-startup-fragment.glsl">startupfeedback/data/1.40/blinking-startup-fragment.glsl</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
#version 140
|
||||
uniform sampler2D sampler;
|
||||
uniform vec4 geometryColor;
|
||||
|
||||
in vec2 texcoord0;
|
||||
|
||||
out vec4 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 tex = texture(sampler, texcoord0);
|
||||
if (tex.a != 1.0) {
|
||||
tex = geometryColor;
|
||||
}
|
||||
fragColor = tex;
|
||||
}
|
Loading…
Reference in a new issue