[effects/startupfeedback] Fix shader
Provide both 1.10 and 1.40 shaders. Differential Revision: https://phabricator.kde.org/D18757icc-effect-5.17.5
parent
64115d4de2
commit
bc5978b759
|
@ -8,7 +8,7 @@
|
||||||
<file alias="invert.frag">invert/data/1.10/invert.frag</file>
|
<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="logout-blur.frag">logout/data/1.10/logout-blur.frag</file>
|
||||||
<file alias="lookingglass.frag">lookingglass/data/1.10/lookingglass.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>
|
||||||
<qresource prefix="/effect-shaders-1.40">
|
<qresource prefix="/effect-shaders-1.40">
|
||||||
<file alias="coverswitch-reflection.glsl">coverswitch/shaders/1.40/coverswitch-reflection.glsl</file>
|
<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="invert.frag">invert/data/1.40/invert.frag</file>
|
||||||
<file alias="logout-blur.frag">logout/data/1.40/logout-blur.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="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>
|
</qresource>
|
||||||
</RCC>
|
</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 New Issue