mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
updated noise stuff
This commit is contained in:
parent
91cfbe2891
commit
2bd2bdff08
2 changed files with 7 additions and 2 deletions
|
@ -238,7 +238,11 @@ double noise3d_param(const NoiseParams ¶m, 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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue