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:
parent
2ddb14a95f
commit
81d3bad747
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue