1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 03:19:44 +00:00
OpenMW/files/shaders/lib/util/quickstep.glsl
2023-12-21 10:56:38 -08:00

13 lines
176 B
GLSL

#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