17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-30 13:10:29 +01:00

feat(terrain): grass follows the seasons and fades out over gfx.grass.fadedistance

This commit is contained in:
2026-10-20 02:20:03 +02:00
parent ceb439b218
commit 07ac7406a0
13 changed files with 129 additions and 28 deletions

View File

@@ -44,6 +44,8 @@ struct grass_kind
float width{0.012f}; // metres, at the root
float density{60.f}; // blades per square metre where painted fully
float bend{0.3f}; // share of the height the tips lean over by
glm::vec3 dry{0.f}; // the tips dried out, in autumn and winter
float seasonal{1.f}; // how much the kind follows the seasons, 0..1
};
// a chunk of the heightmap terrain the grass grows on, see gfx_renderer::Terrain_Grass()