12 Commits (e340d1ba05c5d8b3700d9fd41014e753330a46a1)

Author SHA1 Message Date
Martin Gräßlin 71940e879d Fix modulation in Invert effect
Thanks to Kevin for spotting and providing a fix.

BUG: 322013
FIXED-IN: 4.11
11 years ago
Martin Gräßlin 58ffb7b627 GLSL 1.40 shader for invert effect
REVIEW: 110573
11 years ago
Martin Gräßlin 95656c3936 Remove the u_forceAlpha
It's unused nowadays.
11 years ago
Martin Gräßlin a05ad98896 Remove textureWidth/textureHeight from all Shaders
The uniforms textureWidth and textureHeight were only needed for
normal windows. For everything else it was just 1.0/1.0, that is
normalized.

The makeArrays method is changed to produce normalized texcoords
obsoleting the need for these uniforms. So two uniforms less, one
calculation in vertex shaders less and many many lines of code
removed.

At the same time makeArrays is also adjusted to take care of
yInverted of the texture, which is needed as we no longer can use
the enableUnnormalizedTexCoords which did the yInverted transformation.

REVIEW: 101646
13 years ago
Martin Gräßlin 20fdcf06f4 Fix blending issue with invert effect
Actually it's more a hack and should be addressed in the next
release cycle by allowing effects to modify the scene's blend
equation.
BUG: 274424
FIXED-IN: 4.7.0
13 years ago
Fredrik Höglund af92a4efd4 kwin: Rename sample to sampler in all shaders
A sample is not the same thing as a sampler.
14 years ago
Fredrik Höglund 73be6657ea kwin: Replace brightness and opacity with a modulation constant
This makes it possible to adjust both brightness and opacity
at the same time with one multiplication in the fragment shader.
14 years ago
Fredrik Höglund 28cf355b26 kwin: Fix a bug in the fragment shaders
The alpha channel must be set to 1 before the sample is modulated
with the brightness and opacity constants, not after.
14 years ago
Fredrik Höglund 5e97ccf7e0 kwin: Normalize the texcoords in the vertex shader 14 years ago
Martin Gräßlin b7ee35bba1 Invert effect ported to GLES.
It uses a generic vertex shader and because of that it needs to
mark all windows which are inverted as transformed.
There is currently a conflict with Lanczos (or thumbnails) and with
the desktop in cube effect.
14 years ago
Lucas Murray 491d61b949 Correctly handle pre-multiplied textures in the invert effect.
BUG: 212339

svn path=/trunk/KDE/kdebase/workspace/; revision=1042534
15 years ago
Lucas Murray 846496d2c1 Cleaned up the effects/ directory by moving each individual effect into
its own directory, cleaned up the effect config macros and renamed
"MakeTransparent" to "Translucency" so that it matches its visible name.

svn path=/trunk/KDE/kdebase/workspace/; revision=921749
16 years ago