Wallpaper: made the selection more responsive to clicks + code cleanup
This commit is contained in:
parent
3c7d03ada9
commit
125a3ace08
5 changed files with 78 additions and 65 deletions
|
|
@ -22,9 +22,9 @@ void main() {
|
|||
vec4 color1 = texture(source1, uv); // Current (old) wallpaper
|
||||
vec4 color2 = texture(source2, uv); // Next (new) wallpaper
|
||||
|
||||
// Map smoothness from 0.0-1.0 to 0.001-0.1 range
|
||||
// Map smoothness from 0.0-1.0 to 0.001-0.3 range
|
||||
// Using a non-linear mapping for better control at low values
|
||||
float mappedSmoothness = mix(0.001, 0.1, ubuf.smoothness * ubuf.smoothness);
|
||||
float mappedSmoothness = mix(0.001, 0.3, ubuf.smoothness * ubuf.smoothness);
|
||||
|
||||
// Use values directly without forcing defaults
|
||||
float stripes = (ubuf.stripeCount > 0.0) ? ubuf.stripeCount : 12.0;
|
||||
|
|
@ -66,7 +66,7 @@ void main() {
|
|||
float normalizedStripePos = clamp(stripePos / stripes, 0.0, 1.0);
|
||||
|
||||
// Increased delay and better distribution
|
||||
float maxDelay = 0.15;
|
||||
float maxDelay = 0.1;
|
||||
float stripeDelay = normalizedStripePos * maxDelay;
|
||||
|
||||
// Better progress mapping that uses the full 0.0-1.0 range
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue