GLSL smoothstep is NOT lerp, it's 'Hermite linear interpolation' which basically means not a damn thing anyone says it is. mix is what I want.

This commit is contained in:
Zed A. Shaw 2025-04-14 12:12:21 -04:00
parent 766b20f3f8
commit 08bc48df3d
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ namespace gui {
$gui.set<Sprite>(button, {"leather_pouch-128"});
// $gui.set<Rectangle>(button, {});
$gui.set<Label>(button, {label});
$gui.set<Shader>(button, {.duration=0.2f});
$gui.set<Shader>(button, {.duration=0.1f});
$gui.set<Clickable>(button,
guecs::make_action(*$level.world, event));
}