mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user