From 2552b129c4f40a49eba2e616ebc1c4c561e26871 Mon Sep 17 00:00:00 2001 From: lpnh Date: Sat, 18 May 2024 12:55:40 -0300 Subject: refactor: make example ready to copy and paste --- wiki/examples/close_custom_shader.frag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wiki/examples') 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); } -- cgit