gldesign_noise.c File Reference

Go to the source code of this file.

Defines

#define MAXB   0x100
#define N   0x1000
#define NP   12
#define NM   0xfff
#define s_curve(t)   ( t * t * (3. - 2. * t) )
#define lerp(t, a, b)   ( a + t * (b - a) )
#define setup(i, b0, b1, r0, r1)
#define at2(rx, ry)   ( rx * q[0] + ry * q[1] )
#define at3(rx, ry, rz)   ( rx * q[0] + ry * q[1] + rz * q[2] )

Functions

void CreateNoise3D (void)


Define Documentation

#define MAXB   0x100

Definition at line 17 of file gldesign_noise.c.

#define N   0x1000

#define NP   12

Definition at line 19 of file gldesign_noise.c.

#define NM   0xfff

Definition at line 20 of file gldesign_noise.c.

#define s_curve (  )     ( t * t * (3. - 2. * t) )

Definition at line 22 of file gldesign_noise.c.

#define lerp ( t,
a,
 )     ( a + t * (b - a) )

Definition at line 23 of file gldesign_noise.c.

#define setup ( i,
b0,
b1,
r0,
r1   ) 

Value:

t = vec[i] + N;\
        b0 = ((int)t) & BM;\
        b1 = (b0+1) & BM;\
        r0 = t - (int)t;\
        r1 = r0 - 1.;

Definition at line 24 of file gldesign_noise.c.

#define at2 ( rx,
ry   )     ( rx * q[0] + ry * q[1] )

Definition at line 30 of file gldesign_noise.c.

#define at3 ( rx,
ry,
rz   )     ( rx * q[0] + ry * q[1] + rz * q[2] )

Definition at line 31 of file gldesign_noise.c.


Function Documentation

void CreateNoise3D ( void   ) 

Definition at line 44 of file gldesign_noise.c.

Referenced by initialize().


Generated on Sun Apr 27 14:20:16 2014 for OpenFX by  doxygen 1.5.6