X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnoise.h;fp=src%2Fnoise.h;h=7c9eaaa296794fa3fc59d371ea542ce166c7c2d2;hb=313480bbe9994a200ed9a4355d97a033bf0d6151;hp=0000000000000000000000000000000000000000;hpb=ef6f5c2822eb91ea7df55e88018f566be04ad287;p=andemo diff --git a/src/noise.h b/src/noise.h new file mode 100644 index 0000000..7c9eaaa --- /dev/null +++ b/src/noise.h @@ -0,0 +1,35 @@ +#ifndef NOISE_H_ +#define NOISE_H_ + +float noise1(float x); +float noise2(float x, float y); +float noise3(float x, float y, float z); +/*float noise4(float x, float y, float z, float w);*/ + +float pnoise1(float x, int period); +float pnoise2(float x, float y, int per_x, int per_y); +float pnoise3(float x, float y, float z, int per_x, int per_y, int per_z); +/*float pnoise4(float x, float y, float z, float w, int per_x, int per_y, int per_z, int per_w);*/ + +float fbm1(float x, int octaves); +float fbm2(float x, float y, int octaves); +float fbm3(float x, float y, float z, int octaves); +/*float fbm4(float x, float y, float z, float w, int octaves);*/ + +float pfbm1(float x, int per, int octaves); +float pfbm2(float x, float y, int per_x, int per_y, int octaves); +float pfbm3(float x, float y, float z, int per_x, int per_y, int per_z, int octaves); +/*float pfbm4(float x, float y, float z, float w, int per_x, int per_y, int per_z, int per_w, int octaves);*/ + +float turbulence1(float x, int octaves); +float turbulence2(float x, float y, int octaves); +float turbulence3(float x, float y, float z, int octaves); +/*float turbulence4(float x, float y, float z, float w, int octaves);*/ + +float pturbulence1(float x, int per, int octaves); +float pturbulence2(float x, float y, int per_x, int per_y, int octaves); +float pturbulence3(float x, float y, float z, int per_x, int per_y, int per_z, int octaves); +/*float pturbulence4(float x, float y, float z, float w, int per_x, int per_y, int per_z, int per_w, int octaves);*/ + + +#endif /* NOISE_H_ */