Skip to content

Introduction to Strata

Strata is a comprehensive procedural 3D graphics library for React Three Fiber. It provides everything you need to build high-quality 3D games and experiences—from terrain generation to character animation—all optimized for performance across mobile, web, and desktop.

The name Strata comes from geology: layers of rock or soil with internally consistent characteristics that distinguish them from contiguous layers. This perfectly embodies our framework:

  • Geological Metaphor: Building worlds layer by layer, from terrain foundations to atmospheric effects
  • Framework Architecture: From core algorithms → React components → Game framework
  • Technical Precision: Deliberate, structured, scientifically grounded

SDF-based terrain generation using marching cubes algorithm with triplanar texturing and multi-biome blending.

import { Terrain } from '@strata-game-library/core';
<Terrain
biomes={['grassland', 'mountain', 'desert']}
resolution={128}
size={1000}
/>

Realistic water rendering with Gerstner wave simulation, Fresnel-based reflections, procedural foam, and underwater caustics.

import { Water, AdvancedWater } from '@strata-game-library/core';
<Water size={200} depth={20} />
<AdvancedWater size={200} waveHeight={2} reflections caustics />

GPU-accelerated instancing capable of rendering 10,000+ instances at 60fps with procedural wind animation.

import { GrassInstances, TreeInstances, RockInstances } from '@strata-game-library/core';
<GrassInstances count={10000} spread={100} />
<TreeInstances count={500} spread={200} />
<RockInstances count={200} spread={150} />

Physically-based atmospheric scattering with dynamic day/night cycle, stars, and sun/moon positioning.

import { ProceduralSky, createTimeOfDay } from '@strata-game-library/core';
<ProceduralSky timeOfDay={createTimeOfDay(14, 30)} />

God rays, volumetric fog, underwater overlays, and atmospheric effects.

import { VolumetricFogMesh, UnderwaterOverlay, EnhancedFog } from '@strata-game-library/core';
<VolumetricFogMesh density={0.02} color="#8899aa" />
<UnderwaterOverlay depth={10} />

Articulated character system with IK chains, procedural walk cycles, and physics integration.

import { Character, createWalkCycle } from '@strata-game-library/core';
<Character
model={characterModel}
animation={createWalkCycle({ speed: 1.5 })}
/>

Strata is organized into several focused packages:

PackageDescriptionNPM
@strata-game-library/coreCore library with all featuresnpm
@strata-game-library/shadersStandalone GLSL shader collectionnpm
@strata-game-library/presetsReady-to-use configurationsnpm
@strata-game-library/react-native-pluginReact Native mobile pluginnpm
@strata-game-library/capacitor-pluginCapacitor mobile pluginnpm
FeatureWithout StrataWith Strata
Terrain System2000+ lines~50 lines
Water Rendering1500+ lines~20 lines
Vegetation1000+ lines~30 lines
Full Scene5000+ lines~200 lines
  • GPU-accelerated instancing for vegetation
  • Efficient shader implementations
  • Level-of-detail (LOD) support
  • Mobile-first performance tuning
  • Full TypeScript definitions
  • Type-safe props and configurations
  • Excellent IDE support with autocomplete
  • Comprehensive JSDoc annotations
  • Used in production games
  • Comprehensive test suite
  • Active maintenance and updates
  • Growing community

Ready to get started? Check out these guides: