Skip to content
Snippets Groups Projects
Commit 2bd2bdff authored by Perttu Ahola's avatar Perttu Ahola
Browse files

updated noise stuff

parent 91cfbe28
Branches
Tags
No related merge requests found
......@@ -238,7 +238,11 @@ double noise3d_param(const NoiseParams &param, double x, double y, double z)
y /= s;
z /= s;
if(param.type == NOISE_PERLIN)
if(param.type == NOISE_CONSTANT_ONE)
{
return 1.0;
}
else if(param.type == NOISE_PERLIN)
{
return param.noise_scale*noise3d_perlin(x,y,z, param.seed,
param.octaves,
......
......@@ -82,10 +82,11 @@ double noise3d_perlin_abs(double x, double y, double z, int seed,
enum NoiseType
{
NOISE_CONSTANT_ONE,
NOISE_PERLIN,
NOISE_PERLIN_ABS,
NOISE_PERLIN_CONTOUR,
NOISE_PERLIN_CONTOUR_FLIP_YZ
NOISE_PERLIN_CONTOUR_FLIP_YZ,
};
struct NoiseParams
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment