Home
Shaders and presets

Presets

Production-ready configurations for Strata features

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

pnpm add strata-game-library/presets

Quick Start

import { TerrainPresets, WaterPresets } from 'strata-game-library/presets';

<Terrain preset={TerrainPresets.Alpine} />
<Water preset={WaterPresets.CalmOcean} />

Available Presets

Terrain Biomes

Pre-configured terrain generation for different environments.

Weather Systems

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

Water Types

Water rendering configurations for different bodies of water.

Vegetation

Vegetation distribution and appearance for different biomes.

Clouds

Volumetric cloud configurations for different weather and altitudes.

Camera

Camera behavior presets for different game modes.

Animation

Character and object animation presets.

Physics

Physics simulation presets for different environments.

Audio

Audio settings for different environments and moods.

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

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