Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
illuna-minetest
Commits
b96450b5
Commit
b96450b5
authored
13 years ago
by
Nils Dagsson Moskopp
Browse files
Options
Downloads
Patches
Plain Diff
* slightly different values for 3d perlin noise
parent
a676493f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mapgen.cpp
+3
-3
3 additions, 3 deletions
src/mapgen.cpp
with
3 additions
and
3 deletions
src/mapgen.cpp
+
3
−
3
View file @
b96450b5
...
@@ -903,8 +903,8 @@ NoiseParams get_cave_noise2_params(u64 seed)
...
@@ -903,8 +903,8 @@ NoiseParams get_cave_noise2_params(u64 seed)
NoiseParams
get_ground_noise1_params
(
u64
seed
)
NoiseParams
get_ground_noise1_params
(
u64
seed
)
{
{
return
NoiseParams
(
NOISE_PERLIN
,
seed
+
983240
,
5
,
return
NoiseParams
(
NOISE_PERLIN
,
seed
+
983240
,
4
,
0.
60
,
10
0.0
,
3
0.0
);
0.
55
,
8
0.0
,
4
0.0
);
}
}
NoiseParams
get_ground_crumbleness_params
(
u64
seed
)
NoiseParams
get_ground_crumbleness_params
(
u64
seed
)
...
@@ -939,7 +939,7 @@ bool val_is_ground(double ground_noise1_val, v3s16 p, u64 seed)
...
@@ -939,7 +939,7 @@ bool val_is_ground(double ground_noise1_val, v3s16 p, u64 seed)
double
f
=
0.8
+
noise2d_perlin
(
double
f
=
0.8
+
noise2d_perlin
(
0.5
+
(
float
)
p
.
X
/
250
,
0.5
+
(
float
)
p
.
Z
/
250
,
0.5
+
(
float
)
p
.
X
/
250
,
0.5
+
(
float
)
p
.
Z
/
250
,
seed
+
920381
,
3
,
0.5
);
seed
+
920381
,
3
,
0.
4
5
);
if
(
f
<
0.01
)
if
(
f
<
0.01
)
f
=
0.01
;
f
=
0.01
;
else
if
(
f
>=
1.0
)
else
if
(
f
>=
1.0
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment