🔧 Support different profiles for kwin
This commit is contained in:
@@ -48,6 +48,16 @@ generate() {
|
||||
echo ""
|
||||
cat "../resources/shaders/common.glsl"
|
||||
cat "../resources/shaders/$1.frag"
|
||||
} > "${BUILD_DIR}/kwin4_effect_$1/contents/shaders/$1_core.frag"
|
||||
|
||||
{
|
||||
echo "#version 100"
|
||||
echo "#define KWIN_LEGACY"
|
||||
echo ""
|
||||
echo "// This file is automatically generated during the build process."
|
||||
echo ""
|
||||
cat "../resources/shaders/common.glsl"
|
||||
cat "../resources/shaders/$1.frag"
|
||||
} > "${BUILD_DIR}/kwin4_effect_$1/contents/shaders/$1.frag"
|
||||
}
|
||||
|
||||
|
||||
+5
-6
@@ -1,8 +1,7 @@
|
||||
/*
|
||||
KWin - the KDE window manager
|
||||
This file is part of the KDE project.
|
||||
This file is part of the Burn-My-Windows project.
|
||||
|
||||
SPDX-FileCopyrightText: 2018, 2021, 2022 Vlad Zahorodnii <vlad.zahorodnii@kde.org>, Martin Flöser <mgraesslin@kde.org>, Simon Schneegans
|
||||
SPDX-FileCopyrightText: 2018, 2021, 2022 Vlad Zahorodnii <vlad.zahorodnii@kde.org>, Martin Flöser <mgraesslin@kde.org>, Simon Schneegans <code@simonschneegans.de>
|
||||
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
@@ -26,7 +25,7 @@ class Effect {
|
||||
effects.windowClosed.connect(this.slotWindowClosed.bind(this));
|
||||
effects.windowDataChanged.connect(this.slotWindowDataChanged.bind(this));
|
||||
|
||||
this.shader = effect.addShader(Effect.MapTexture, "%NICK%.frag");
|
||||
this.shader = effect.addFragmentShader(Effect.MapTexture, "%NICK%.frag");
|
||||
|
||||
this.loadConfig();
|
||||
}
|
||||
@@ -109,7 +108,7 @@ class Effect {
|
||||
animations: [
|
||||
{
|
||||
type: Effect.ShaderUniform,
|
||||
shader: this.shader,
|
||||
fragmentShader: this.shader,
|
||||
uniform: "uForOpening",
|
||||
from: 1.0,
|
||||
to: 1.0
|
||||
@@ -143,7 +142,7 @@ class Effect {
|
||||
animations: [
|
||||
{
|
||||
type: Effect.ShaderUniform,
|
||||
shader: this.shader,
|
||||
fragmentShader: this.shader,
|
||||
uniform: "uForOpening",
|
||||
from: 0.0,
|
||||
to: 0.0
|
||||
|
||||
@@ -6,7 +6,7 @@ Comment=%DESCRIPTION%
|
||||
Type=Service
|
||||
X-KDE-ServiceTypes=KWin/Effect,KCModule
|
||||
X-KDE-PluginInfo-Author=Vlad Zahorodnii, Martin Flöser, Simon Schneegans
|
||||
X-KDE-PluginInfo-Email=vlad.zahorodnii@kde.org, mgraesslin@kde.org
|
||||
X-KDE-PluginInfo-Email=vlad.zahorodnii@kde.org, mgraesslin@kde.org, code@simonschneegans.de
|
||||
X-KDE-PluginInfo-Name=kwin4_effect_%NICK%
|
||||
X-KDE-PluginInfo-Version=1
|
||||
X-KDE-PluginInfo-Category=Window Open/Close Animation
|
||||
|
||||
Reference in New Issue
Block a user