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
+10
View File
@@ -152,6 +152,16 @@ function createGrassMaterial(
uClumpFrequency: { value: GRASS_CONFIG.clumpFrequency },
uClumpThreshold: { value: GRASS_CONFIG.clumpThreshold },
uClumpSoftness: { value: GRASS_CONFIG.clumpSoftness },
uZoneFrequency: { value: GRASS_CONFIG.zoneFrequency },
uSparseZoneThreshold: { value: GRASS_CONFIG.sparseZoneThreshold },
uTallZoneThreshold: { value: GRASS_CONFIG.tallZoneThreshold },
uZoneSoftness: { value: GRASS_CONFIG.zoneSoftness },
uSparseZoneHeight: { value: GRASS_CONFIG.sparseZoneHeight },
uLowZoneHeight: { value: GRASS_CONFIG.lowZoneHeight },
uTallZoneHeight: { value: GRASS_CONFIG.tallZoneHeight },
uSparseZoneDensity: { value: GRASS_CONFIG.sparseZoneDensity },
uLowZoneDensity: { value: GRASS_CONFIG.lowZoneDensity },
uTallZoneDensity: { value: GRASS_CONFIG.tallZoneDensity },
uMaxBendAngle: { value: GRASS_CONFIG.maxBendAngle },
uMaxBladeHeight: { value: GRASS_CONFIG.maxBladeHeight },
uRandomHeightAmount: { value: GRASS_CONFIG.randomHeightAmount },