From 81d3bad74786fa1a44922a18dbd19ba6b8b21fde Mon Sep 17 00:00:00 2001 From: loner <2788892716@qq.com> Date: Tue, 2 Sep 2025 00:06:27 +0800 Subject: [PATCH] fix: shader error The shader compilation error occurred in wp_stripes.frag, which handles the "stripes" wallpaper transition. The bug was caused by the modulo operator (%), which is not supported in the older GLSL version your system is using for compilation. I fixed it by replacing the incompatible % operator with the standard mod() function, which works across all GLSL versions. --- Shaders/frag/wp_stripes.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shaders/frag/wp_stripes.frag b/Shaders/frag/wp_stripes.frag index 34df964..f141227 100644 --- a/Shaders/frag/wp_stripes.frag +++ b/Shaders/frag/wp_stripes.frag @@ -59,7 +59,7 @@ void main() { int stripeIndex = int(floor(stripePos)); // Determine if this is an odd or even stripe - bool isOddStripe = (stripeIndex % 2) == 1; + bool isOddStripe = mod(float(stripeIndex), 2.0) != 0.0; // Calculate the progress for this specific stripe with wave delay // Use absolute stripe position for consistent delay across all stripes