mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Fixed lerp() duplicate on Clang
This commit is contained in:
parent
48172dd5b1
commit
2c04b27e36
1 changed files with 4 additions and 0 deletions
|
@ -300,10 +300,14 @@ static float fade(float t)
|
||||||
return t * t * t * (t * (t * 6 - 15) + 10);
|
return t * t * t * (t * (t * 6 - 15) + 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
#if __cplusplus <= 201703L
|
||||||
static float lerp(float t, float a, float b)
|
static float lerp(float t, float a, float b)
|
||||||
{
|
{
|
||||||
return a + t * (b - a);
|
return a + t * (b - a);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
static float grad(unsigned char hash, float x, float y, float z)
|
static float grad(unsigned char hash, float x, float y, float z)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue