Home
Guides and examples

Examples

Working example projects demonstrating Strata's capabilities

Working example projects that demonstrate how to use Strata's features. Clone the repository and run any example locally.

Getting the Examples

git clone https://github.com/jbcom/strata-game-library.git
cd strata-game-library
pnpm install

Available Examples

Basic Terrain

A minimal terrain setup demonstrating SDF-based terrain generation with biome blending.

pnpm --dir apps/examples/basic-terrain dev
  • Procedural terrain with multi-biome blending
  • Triplanar texturing
  • Dynamic LOD
  • View Source

Water Scene

Ocean rendering with Gerstner waves, reflections, and caustics.

pnpm --dir apps/examples/water-scene dev
  • Gerstner wave simulation
  • Fresnel reflections
  • Procedural foam
  • Underwater caustics
  • View Source

Vegetation Showcase

GPU-instanced grass, trees, and rocks with wind animation.

pnpm --dir apps/examples/vegetation-showcase dev
  • 15,000+ grass instances at 60fps
  • Procedural wind animation
  • Tree and rock placement
  • View Source

Sky & Volumetrics

Procedural sky with day/night cycle and volumetric effects.

pnpm --dir apps/examples/sky-volumetrics dev
  • Atmospheric scattering
  • Day/night cycle
  • Volumetric fog and god rays
  • Star rendering
  • View Source

Full API Showcase

Complete scene integrating all Strata features.

pnpm --dir apps/examples/api-showcase dev
  • All features combined
  • Runtime composition examples with RuntimeProp, RuntimeCreature, animation-graph guards, and IK target pose previews
  • Performance-optimized
  • Interactive controls
  • View Source

Running Examples

Each example is a standalone project with its own dependencies:

# Install workspace dependencies
pnpm install

# Run a specific example
pnpm --dir apps/examples/basic-terrain dev
pnpm --dir apps/examples/water-scene dev
pnpm --dir apps/examples/vegetation-showcase dev
pnpm --dir apps/examples/sky-volumetrics dev
pnpm --dir apps/examples/api-showcase dev