aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpnh <paniguel.lpnh@gmail.com>2024-05-18 12:55:40 -0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-05-18 20:17:39 +0300
commit2552b129c4f40a49eba2e616ebc1c4c561e26871 (patch)
treedb4aa35e5f8d2608488d5e6bee1f25aca07794ce
parentd96a66ddff1a6b88dbe3e23b049f7075533b216f (diff)
downloadniri-2552b129c4f40a49eba2e616ebc1c4c561e26871.tar.gz
niri-2552b129c4f40a49eba2e616ebc1c4c561e26871.tar.bz2
niri-2552b129c4f40a49eba2e616ebc1c4c561e26871.zip
refactor: make example ready to copy and paste
-rw-r--r--wiki/examples/close_custom_shader.frag4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiki/examples/close_custom_shader.frag b/wiki/examples/close_custom_shader.frag
index f45ec22e..fdd931ea 100644
--- a/wiki/examples/close_custom_shader.frag
+++ b/wiki/examples/close_custom_shader.frag
@@ -105,7 +105,7 @@ vec4 default_close(vec3 coords_geo, vec3 size_geo) {
return color;
}
-// Example: make the window "fall down" with slight rotation.
+// Example: make the window 'fall down' with slight rotation.
vec4 fall_and_rotate(vec3 coords_geo, vec3 size_geo) {
// For this shader, set animation curve to linear for best results.
@@ -142,6 +142,6 @@ vec4 fall_and_rotate(vec3 coords_geo, vec3 size_geo) {
// This is the function that you must define.
vec4 close_color(vec3 coords_geo, vec3 size_geo) {
// You can pick one of the example functions or write your own.
- return rotate_and_fall_down(coords_geo, size_geo);
+ return fall_and_rotate(coords_geo, size_geo);
}