style cleanup: assignment & indentation.
This commit is contained in:
@@ -84,9 +84,9 @@ __device uint phash(int kx, int ky, int kz, int3 p)
|
||||
|
||||
__device float floorfrac(float x, int* i)
|
||||
{
|
||||
float f = floorf(x);
|
||||
*i = (int)f;
|
||||
return x - f;
|
||||
float f = floorf(x);
|
||||
*i = (int)f;
|
||||
return x - f;
|
||||
}
|
||||
|
||||
__device float fade(float t)
|
||||
@@ -96,7 +96,7 @@ __device float fade(float t)
|
||||
|
||||
__device float nerp(float t, float a, float b)
|
||||
{
|
||||
return (1.0f - t) * a + t * b;
|
||||
return (1.0f - t) * a + t * b;
|
||||
}
|
||||
|
||||
__device float grad(int hash, float x, float y, float z)
|
||||
|
Reference in New Issue
Block a user