Presets
Presets
Section titled “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.
Installation
Section titled “Installation”pnpm add @strata-game-library/presetsQuick Start
Section titled “Quick Start”import { TerrainPresets, WaterPresets } from '@strata-game-library/presets';
<Terrain preset={TerrainPresets.Alpine} /><Water preset={WaterPresets.CalmOcean} />Available Presets
Section titled “Available Presets”Terrain Biomes
Section titled “Terrain Biomes”Pre-configured terrain generation for different environments.
- Terrain Presets — Alpine, desert, tropical, tundra, volcanic
Weather Systems
Section titled “Weather Systems”Dynamic weather configuration with wind, rain, snow, and fog.
- Weather Presets — Clear, overcast, rain, thunderstorm, snow, fog
Water Types
Section titled “Water Types”Water rendering configurations for different bodies of water.
- Water Presets — Calm ocean, rough sea, river, lake, swamp
Vegetation
Section titled “Vegetation”Vegetation distribution and appearance for different biomes.
- Vegetation Presets — Forest, grassland, savanna, jungle, tundra
Clouds
Section titled “Clouds”Volumetric cloud configurations for different weather and altitudes.
- Cloud Presets — Cumulus, stratus, cirrus, storm clouds
Camera
Section titled “Camera”Camera behavior presets for different game modes.
- Camera Presets — Follow, orbit, first-person, cinematic
Animation
Section titled “Animation”Character and object animation presets.
- Animation Presets — Walk cycles, idle, combat, swimming
Physics
Section titled “Physics”Physics simulation presets for different environments.
- Physics Presets — Earth gravity, low gravity, underwater, zero-G
Audio settings for different environments and moods.
- Audio Presets — Forest ambience, cave echo, underwater, wind
Combining Presets
Section titled “Combining Presets”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} />Full API Reference
Section titled “Full API Reference”See the detailed TypeDoc documentation for all preset definitions and types.