1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 08:23:53 +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
172 B
Text
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);
x = 1.0 - x*x;
x = 1.0 - x*x;
return x;
}
#endif