forked from bartvdbraak/blender
Making noise.c more palatable on irix.
This commit is contained in:
parent
dc2d6b035a
commit
3b680da036
@ -534,14 +534,22 @@ float turbulence_perlin(float *point, float lofreq, float hifreq)
|
||||
/* for use with BLI_gNoise/gTurbulence, returns signed noise */
|
||||
float orgPerlinNoise(float x, float y, float z)
|
||||
{
|
||||
float v[3] = {x, y, z};
|
||||
float v[3];
|
||||
|
||||
v[0] = x;
|
||||
v[1] = y;
|
||||
v[2] = z;
|
||||
return noise3_perlin(v);
|
||||
}
|
||||
|
||||
/* for use with BLI_gNoise/gTurbulence, returns unsigned noise */
|
||||
float orgPerlinNoiseU(float x, float y, float z)
|
||||
{
|
||||
float v[3] = {x, y, z};
|
||||
float v[3];
|
||||
|
||||
v[0] = x;
|
||||
v[1] = y;
|
||||
v[2] = z;
|
||||
return (0.5+0.5*noise3_perlin(v));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user