feat(environment): vary grass density by procedural zones

This commit is contained in:
Tom Boullay
2026-05-28 01:05:40 +02:00
parent ea23b4bb46
commit b87a7e929c
3 changed files with 46 additions and 2 deletions
+11 -1
View File
@@ -3,7 +3,7 @@ export const GRASS_CONFIG = {
patchSize: 30,
bladeCount: 32000,
bladeWidth: 0.08,
maxBladeHeight: 0.36,
maxBladeHeight: 0.56,
randomHeightAmount: 0.25,
surfaceOffset: 0.025,
heightTextureSize: 128,
@@ -16,6 +16,16 @@ export const GRASS_CONFIG = {
clumpFrequency: 2.6,
clumpThreshold: 0.18,
clumpSoftness: 0.45,
zoneFrequency: 0.035,
sparseZoneThreshold: 0.4,
tallZoneThreshold: 0.8,
zoneSoftness: 0.08,
sparseZoneHeight: 0.08,
lowZoneHeight: 0.45,
tallZoneHeight: 1,
sparseZoneDensity: 0.08,
lowZoneDensity: 0.72,
tallZoneDensity: 1,
maxBendAngle: 14,
} as const;