aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/world.c b/src/world.c
index 17269ec..9e4e936 100644
--- a/src/world.c
+++ b/src/world.c
@@ -381,6 +381,10 @@ World createWorld(Seed seed)
// Heightmap.
Mesh mesh = GenMeshHeightmap(image, world.size);
world.heightmap = LoadModelFromMesh(mesh);
+
+ // Texture.
+ ImageColorTint(&image, WORLD_GROUND_COLOR);
+ ImageBlurGaussian(&image, WORLD_GROUND_BLUR);
world.texture = LoadTextureFromImage(image);
world.heightmap.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture =
world.texture;