mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-24 21:55:09 +00:00
10 lines
223 B
GLSL
Executable File
10 lines
223 B
GLSL
Executable File
void mx_burn_float(float fg, float bg, float mixval, out float result)
|
|
{
|
|
if (abs(fg) < M_FLOAT_EPS)
|
|
{
|
|
result = 0.0;
|
|
return;
|
|
}
|
|
result = mixval*(1.0 - ((1.0 - bg) / fg)) + ((1.0-mixval)*bg);
|
|
}
|