fuckingtech/public/assets/glsl/lygia/animation/easing/bounceIn.glsl
Elias Rhouzlane bf76c6b086 fix: code
2025-04-06 17:23:52 +02:00

14 lines
430 B
GLSL

#include "bounceOut.glsl"
/*
contributors: Hugh Kennedy (https://github.com/hughsk)
description: Bounce in easing. From https://github.com/stackgl/glsl-easings
use: <float> bounceIn(<float> x)
examples:
- https://raw.githubusercontent.com/eduardfossas/lygia-study-examples/main/animation/e_EasingBounce.frag
*/
#ifndef FNC_BOUNCEIN
#define FNC_BOUNCEIN
float bounceIn(in float t) { return 1.0 - bounceOut(1.0 - t); }
#endif