From 0bdddd837a515ff6172059c11fcfb7e147b09e43 Mon Sep 17 00:00:00 2001 From: Scott Moreau Date: Thu, 18 Dec 2025 13:32:56 -0700 Subject: [PATCH] extra-animations: carpet: Change tabs to four spaces in shader --- src/extra-animations/carpet.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/extra-animations/carpet.hpp b/src/extra-animations/carpet.hpp index a90a9f3..8c4336c 100644 --- a/src/extra-animations/carpet.hpp +++ b/src/extra-animations/carpet.hpp @@ -126,13 +126,13 @@ vec4 single_roll(vec2 uvpos_var, float progress, int direction) if (direction == 1) { pfrag = get_pixel(vec2(1.0 - uv.x, uv.y)); - } else if (direction == 2) + } else if (direction == 2) { pfrag = get_pixel(vec2(uv.x, 1.0 - uv.y)); - } else + } else { pfrag = get_pixel(uv); - } + } } // store color for fragment mixing with current fragment if translucent wfrag = mix(pfrag, wfrag, wfrag.a); @@ -168,13 +168,13 @@ vec4 single_roll(vec2 uvpos_var, float progress, int direction) if (direction == 1) { pfrag = get_pixel(vec2(1.0 - uv.x, uv.y)); - } else if (direction == 2) + } else if (direction == 2) { pfrag = get_pixel(vec2(uv.x, 1.0 - uv.y)); - } else + } else { pfrag = get_pixel(uv); - } + } } // compute lighting pfrag = vec4(clamp(pfrag.rgb + (angle / -M_PI), 0.0, 1.0), pfrag.a);