aboutsummaryrefslogtreecommitdiff
path: root/wiki/Configuration:-Animations.md
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-05-12 10:08:06 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-05-12 10:08:06 +0400
commit55e550262dcde29b0e0332e257008029b146a97f (patch)
tree98803265d0d2b58c2fdcf5d71ddfe5e9ceb1aae7 /wiki/Configuration:-Animations.md
parente5ccc9332c3b09dd4f335e23d44e9db8725036e6 (diff)
downloadniri-55e550262dcde29b0e0332e257008029b146a97f.tar.gz
niri-55e550262dcde29b0e0332e257008029b146a97f.tar.bz2
niri-55e550262dcde29b0e0332e257008029b146a97f.zip
wiki: Fix custom shader examples
Diffstat (limited to 'wiki/Configuration:-Animations.md')
-rw-r--r--wiki/Configuration:-Animations.md6
1 files changed, 1 insertions, 5 deletions
diff --git a/wiki/Configuration:-Animations.md b/wiki/Configuration:-Animations.md
index ab2c06e1..28486719 100644
--- a/wiki/Configuration:-Animations.md
+++ b/wiki/Configuration:-Animations.md
@@ -188,9 +188,7 @@ Example: close will fill the current geometry with a solid gradient that gradual
```
animations {
- window-resize {
- spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
-
+ window-close {
custom-shader r"
vec4 close_color(vec3 coords_geo, vec3 size_geo) {
vec4 color = vec4(0.0);
@@ -286,8 +284,6 @@ Example: resize will show the next (after resize) window texture right away, str
```
animations {
window-resize {
- spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
-
custom-shader r"
vec4 resize_color(vec3 coords_curr_geo, vec3 size_curr_geo) {
vec3 coords_tex_next = niri_geo_to_tex_next * coords_curr_geo;