This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int argbToInt(argb[]){ | |
| if (argb[3] > 255) argb[3] = 255; else if (argb[3] < 0) argb[3] = 0; | |
| if (argb[0] > 255) argb[0] = 255; else if (argb[0] < 0) argb[0] = 0; | |
| if (argb[1] > 255) argb[1] = 255; else if (argb[1] < 0) argb[1] = 0; | |
| if (argb[2] > 255) argb[2] = 255; else if (argb[2] < 0) argb[2] = 0; | |
| return ((int)rgb[3] << 24) | ((int)rgb[0] << 16) | ((int)rgb[1] << 8) | (int)rgb[2]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*Note : the value passed as parameter to the functions is the normalized time of the animation | |
| */ | |
| /* QUAD */ | |
| float inQuad(in float value) | |
| { | |
| return clamp(1.0 * value * value, 0, 1); | |
| } | |
| float outQuad(in float value) |