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.
This commit is contained in:
loner 2025-09-02 00:06:27 +08:00
parent 2ddb14a95f
commit 81d3bad747
No known key found for this signature in database
GPG key ID: BF57164EB71B66AF

View file

@ -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