Skip to content

Presets

The @strata-game-library/presets package provides production-ready configurations for all Strata features. Use presets to quickly set up terrain biomes, weather systems, water types, vegetation patterns, and more.

Terminal window
pnpm add @strata-game-library/presets
import { TerrainPresets, WaterPresets } from '@strata-game-library/presets';
<Terrain preset={TerrainPresets.Alpine} />
<Water preset={WaterPresets.CalmOcean} />

Pre-configured terrain generation for different environments.

Dynamic weather configuration with wind, rain, snow, and fog.

Water rendering configurations for different bodies of water.

Vegetation distribution and appearance for different biomes.

Volumetric cloud configurations for different weather and altitudes.

Camera behavior presets for different game modes.

Character and object animation presets.

Physics simulation presets for different environments.

Audio settings for different environments and moods.

Presets can be combined and customized:

import { TerrainPresets, WaterPresets, WeatherPresets } from '@strata-game-library/presets';
// Use a preset as a base and override specific values
<Terrain
preset={TerrainPresets.Alpine}
resolution={128} // Override resolution
erosion={true} // Enable erosion
/>
// Combine multiple presets for a complete scene
<Weather preset={WeatherPresets.LightRain} />
<Water preset={WaterPresets.RoughSea} />

See the detailed TypeDoc documentation for all preset definitions and types.