Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Want <cwant@ualberta.ca>2004-04-04 05:36:16 +0400
committerChris Want <cwant@ualberta.ca>2004-04-04 05:36:16 +0400
commit3b680da036dd53f63fa00075d5a25740487aab09 (patch)
tree2e2338a7c0d407172030371facdda1df2bbdbf9f /source/blender/blenlib/intern/noise.c
parentdc2d6b035a37b8170a180856bfd91e540d2755e7 (diff)
Making noise.c more palatable on irix.
Diffstat (limited to 'source/blender/blenlib/intern/noise.c')
-rw-r--r--source/blender/blenlib/intern/noise.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c
index 901b1e4d8f9..ef651e0c374 100644
--- a/source/blender/blenlib/intern/noise.c
+++ b/source/blender/blenlib/intern/noise.c
@@ -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));
}