kwin/effects/coverswitch/shaders/1.40/coverswitch-reflection.glsl
Martin Gräßlin c00d468f0f GLSL 1.40 shader for CoverSwitch Reflection
Shader moved to 1.10 subdirectory and a new version for 1.40 added.
At the same time call to glPolygonMode removed as it caused errors with
core context (and seems to not be needed).

REVIEW: 110572
2013-05-23 09:43:43 +02:00

12 lines
219 B
GLSL

#version 140
uniform vec4 u_frontColor;
uniform vec4 u_backColor;
in vec2 varyingTexCoords;
out vec4 fragColor;
void main()
{
fragColor = u_frontColor*(1.0-varyingTexCoords.s) + u_backColor*varyingTexCoords.s;
}