1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00
OpenMW/files/shaders/lib/util/quickstep.glsl

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
176 B
Plaintext
Raw Normal View History

2023-02-25 19:03:39 +00:00
#ifndef LIB_UTIL_QUICKSTEP
#define LIB_UTIL_QUICKSTEP
float quickstep(float x)
{
x = clamp(x, 0.0, 1.0);
2023-11-10 16:02:53 +00:00
x = 1.0 - x * x;
x = 1.0 - x * x;
2023-02-25 19:03:39 +00:00
return x;
}
#endif